From 2726696652179a5ead7dc07dd39edf7dfda687f7 Mon Sep 17 00:00:00 2001 From: mbax Date: Mon, 4 Nov 2013 07:07:38 -0600 Subject: Update CraftBukkit to Minecraft 1.7.2 --- .../net/minecraft/server/EntityWitherSkull.java | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/main/java/net/minecraft/server/EntityWitherSkull.java') diff --git a/src/main/java/net/minecraft/server/EntityWitherSkull.java b/src/main/java/net/minecraft/server/EntityWitherSkull.java index 970c91a7..2d428f9d 100644 --- a/src/main/java/net/minecraft/server/EntityWitherSkull.java +++ b/src/main/java/net/minecraft/server/EntityWitherSkull.java @@ -14,8 +14,8 @@ public class EntityWitherSkull extends EntityFireball { this.a(0.3125F, 0.3125F); } - protected float c() { - return this.d() ? 0.73F : super.c(); + protected float e() { + return this.f() ? 0.73F : super.e(); } public boolean isBurning() { @@ -25,7 +25,7 @@ public class EntityWitherSkull extends EntityFireball { public float a(Explosion explosion, World world, int i, int j, int k, Block block) { float f = super.a(explosion, world, i, j, k, block); - if (this.d() && block != Block.BEDROCK && block != Block.ENDER_PORTAL && block != Block.ENDER_PORTAL_FRAME) { + if (this.f() && block != Blocks.BEDROCK && block != Blocks.ENDER_PORTAL && block != Blocks.ENDER_PORTAL_FRAME && block != Blocks.COMMAND) { f = Math.min(0.8F, f); } @@ -46,12 +46,10 @@ public class EntityWitherSkull extends EntityFireball { if (movingobjectposition.entity instanceof EntityLiving) { byte b0 = 0; - if (this.world.difficulty > 1) { - if (this.world.difficulty == 2) { - b0 = 10; - } else if (this.world.difficulty == 3) { - b0 = 40; - } + if (this.world.difficulty == EnumDifficulty.NORMAL) { + b0 = 10; + } else if (this.world.difficulty == EnumDifficulty.HARD) { + b0 = 40; } if (b0 > 0) { @@ -73,7 +71,7 @@ public class EntityWitherSkull extends EntityFireball { } } - public boolean L() { + public boolean R() { return false; } @@ -81,11 +79,11 @@ public class EntityWitherSkull extends EntityFireball { return false; } - protected void a() { + protected void c() { this.datawatcher.a(10, Byte.valueOf((byte) 0)); } - public boolean d() { + public boolean f() { return this.datawatcher.getByte(10) == 1; } -- cgit v1.2.3