Aercloud checking added

This commit is contained in:
Kino 2017-03-02 22:24:58 -05:00
parent 7408611b13
commit 115aa9aaf4

View file

@ -20,7 +20,6 @@ import net.minecraft.server.management.PlayerList;
import net.minecraft.util.DamageSource;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.WorldServer;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.relauncher.ReflectionHelper;
@ -145,6 +144,11 @@ public class PlayerAether
this.setJumping(hasJumped);
if (this.isInBlock(BlocksAether.aercloud))
{
this.thePlayer.fallDistance = 0.0F;
}
if (this.getCooldown() > 0)
{
this.setCooldown(this.getCooldown() - 1);