summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityHanging.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-03-13 17:33:27 -0500
committerTravis Watkins <amaranth@ubuntu.com>2013-03-15 13:28:59 -0500
commit83d29e461c85733f0113b6eb19db6e3b42da2949 (patch)
treeb3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/EntityHanging.java
parentba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff)
downloadcraftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.gz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.lz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.xz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.zip
Update CraftBukkit to Minecraft 1.5
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityHanging.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityHanging.java20
1 files changed, 10 insertions, 10 deletions
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) {