diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityFallingBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityFallingBlock.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java index 991a7658..bc512172 100644 --- a/src/main/java/net/minecraft/server/EntityFallingBlock.java +++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java @@ -38,7 +38,7 @@ public class EntityFallingBlock extends Entity { this.fallHurtAmount = 2.0F; this.id = block; this.data = i; - this.l = true; + this.k = true; this.a(0.98F, 0.98F); this.height = this.length / 2.0F; this.setPosition(d0, d1, d2); @@ -56,7 +56,7 @@ public class EntityFallingBlock extends Entity { protected void c() {} - public boolean R() { + public boolean Q() { return !this.dead; } @@ -94,7 +94,7 @@ public class EntityFallingBlock extends Entity { this.motY *= -0.5D; if (this.world.getType(i, j, k) != Blocks.PISTON_MOVING) { this.die(); - // CraftBukkit start + // CraftBukkit start - fire EntityChangeBlockEvent if (!this.f && this.world.mayPlace(this.id, i, j, k, true, 1, (Entity) null, (ItemStack) null) && !BlockFalling.canFall(this.world, i, j - 1, k) /* mimic the false conditions of setTypeIdAndData */ && i >= -30000000 && k >= -30000000 && i < 30000000 && k < 30000000 && j > 0 && j < 256 && !(this.world.getType(i, j, k) == this.id && this.world.getData(i, j, k) == this.data)) { if (CraftEventFactory.callEntityChangeBlockEvent(this, i, j, k, this.id, this.data).isCancelled()) { return; |