diff options
Diffstat (limited to 'nms-patches/EntityWither.patch')
-rw-r--r-- | nms-patches/EntityWither.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nms-patches/EntityWither.patch b/nms-patches/EntityWither.patch index 3e25bf5b..a1be6ae4 100644 --- a/nms-patches/EntityWither.patch +++ b/nms-patches/EntityWither.patch @@ -13,9 +13,9 @@ public class EntityWither extends EntityMonster implements IRangedEntity { private static final DataWatcherObject<Integer> a = DataWatcher.a(EntityWither.class, DataWatcherRegistry.b); -@@ -184,13 +190,38 @@ - if (this.de() > 0) { - i = this.de() - 1; +@@ -188,13 +194,38 @@ + if (this.dh() > 0) { + i = this.dh() - 1; if (i <= 0) { - this.world.createExplosion(this, this.locX, this.locY + (double) this.getHeadHeight(), this.locZ, 7.0F, false, this.world.getGameRules().getBoolean("mobGriefing")); - this.world.a(1023, new BlockPosition(this), 0); @@ -55,7 +55,7 @@ } } else { -@@ -281,6 +312,11 @@ +@@ -285,6 +316,11 @@ Block block = iblockdata.getBlock(); if (iblockdata.getMaterial() != Material.AIR && a(block)) { @@ -67,7 +67,7 @@ flag = this.world.setAir(blockposition, true) || flag; } } -@@ -294,7 +330,7 @@ +@@ -298,7 +334,7 @@ } if (this.ticksLived % 20 == 0) { @@ -75,4 +75,4 @@ + this.heal(1.0F, EntityRegainHealthEvent.RegainReason.REGEN); // CraftBukkit } - this.bG.setProgress(this.getHealth() / this.getMaxHealth()); + this.bF.setProgress(this.getHealth() / this.getMaxHealth()); |