diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityFallingBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityFallingBlock.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java index 2f142ae1..1daf7bee 100644 --- a/src/main/java/net/minecraft/server/EntityFallingBlock.java +++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java @@ -25,7 +25,7 @@ public class EntityFallingBlock extends Entity { this.dropItem = true; this.e = false; this.hurtEntities = false; - this.fallHurtMax = 20; + this.fallHurtMax = 40; this.fallHurtAmount = 2.0F; } @@ -39,7 +39,7 @@ public class EntityFallingBlock extends Entity { this.dropItem = true; this.e = false; this.hurtEntities = false; - this.fallHurtMax = 20; + this.fallHurtMax = 40; this.fallHurtAmount = 2.0F; this.id = i; this.data = j; @@ -84,12 +84,13 @@ public class EntityFallingBlock extends Entity { int k = MathHelper.floor(this.locZ); if (this.c == 1) { - if (this.c == 1 && this.world.getTypeId(i, j, k) == this.id && this.world.getData(i, j, k) == this.data && !CraftEventFactory.callEntityChangeBlockEvent(this, i, j, k, 0, 0).isCancelled()) { // CraftBukkit - compare data and call event - this.world.setTypeId(i, j, k, 0); - } else { + // CraftBukkit - compare data and call event + if (this.c != 1 || this.world.getTypeId(i, j, k) != this.id || this.world.getData(i, j, k) != this.data || CraftEventFactory.callEntityChangeBlockEvent(this, i, j, k, 0, 0).isCancelled()) { this.die(); - return; // CraftBukkit + return; } + + this.world.setTypeId(i, j, k, 0); } if (this.onGround) { @@ -196,4 +197,10 @@ public class EntityFallingBlock extends Entity { public void e(boolean flag) { this.hurtEntities = flag; } + + public void a(CrashReportSystemDetails crashreportsystemdetails) { + super.a(crashreportsystemdetails); + crashreportsystemdetails.a("Immitating block ID", Integer.valueOf(this.id)); + crashreportsystemdetails.a("Immitating block data", Integer.valueOf(this.data)); + } } |