From 83d29e461c85733f0113b6eb19db6e3b42da2949 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 13 Mar 2013 17:33:27 -0500 Subject: Update CraftBukkit to Minecraft 1.5 --- .../java/net/minecraft/server/EntityHanging.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/main/java/net/minecraft/server/EntityHanging.java') diff --git a/src/main/java/net/minecraft/server/EntityHanging.java b/src/main/java/net/minecraft/server/EntityHanging.java index 8cc80b97..c35a88a6 100644 --- a/src/main/java/net/minecraft/server/EntityHanging.java +++ b/src/main/java/net/minecraft/server/EntityHanging.java @@ -75,33 +75,33 @@ public abstract class EntityHanging extends Entity { } if (i == 2) { - f3 -= this.g(this.d()); + f3 -= this.b(this.d()); } if (i == 1) { - f5 += this.g(this.d()); + f5 += this.b(this.d()); } if (i == 0) { - f3 += this.g(this.d()); + f3 += this.b(this.d()); } if (i == 3) { - f5 -= this.g(this.d()); + f5 -= this.b(this.d()); } - f4 += this.g(this.g()); + f4 += this.b(this.g()); this.setPosition((double) f3, (double) f4, (double) f5); float f7 = -0.03125F; this.boundingBox.b((double) (f3 - f - f7), (double) (f4 - f1 - f7), (double) (f5 - f2 - f7), (double) (f3 + f + f7), (double) (f4 + f1 + f7), (double) (f5 + f2 + f7)); } - private float g(int i) { + private float b(int i) { return i == 32 ? 0.5F : (i == 64 ? 0.5F : 0.0F); } - public void j_() { + public void l_() { if (this.e++ == 100 && !this.world.isStatic) { this.e = 0; if (!this.dead && !this.survives()) { @@ -199,7 +199,7 @@ public abstract class EntityHanging extends Entity { } } - public boolean L() { + public boolean K() { return true; } @@ -222,7 +222,7 @@ public abstract class EntityHanging extends Entity { // Fire old painting event until it can be removed paintingEvent = new org.bukkit.event.painting.PaintingBreakByEntityEvent((Painting) this.getBukkitEntity(), damagesource.getEntity() == null ? null : damagesource.getEntity().getBukkitEntity()); } - } else if (damagesource == DamageSource.EXPLOSION || damagesource == DamageSource.EXPLOSION2) { + } else if (damagesource.c()) { event = new HangingBreakEvent((Hanging) this.getBukkitEntity(), HangingBreakEvent.RemoveCause.EXPLOSION); } @@ -239,7 +239,7 @@ public abstract class EntityHanging extends Entity { // CraftBukkit end this.die(); - this.K(); + this.J(); EntityHuman entityhuman = null; if (damagesource.getEntity() instanceof EntityHuman) { -- cgit v1.2.3