diff options
Diffstat (limited to 'nms-patches/BlockSkull.patch')
-rw-r--r-- | nms-patches/BlockSkull.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockSkull.patch b/nms-patches/BlockSkull.patch index 51d202cf..b2c8601e 100644 --- a/nms-patches/BlockSkull.patch +++ b/nms-patches/BlockSkull.patch @@ -95,17 +95,17 @@ } @@ -157,14 +199,16 @@ - entitywither.o(); - Iterator iterator = world.a(EntityHuman.class, entitywither.getBoundingBox().g(50.0D)).iterator(); + entitywither.p(); + Iterator iterator = world.a(EntityPlayer.class, entitywither.getBoundingBox().g(50.0D)).iterator(); + // CraftBukkit start + if (world.addEntity(entitywither, SpawnReason.BUILD_WITHER)) { + blockList.updateList(); + while (iterator.hasNext()) { - EntityHuman entityhuman = (EntityHuman) iterator.next(); + EntityPlayer entityplayer = (EntityPlayer) iterator.next(); - entityhuman.b((Statistic) AchievementList.I); + CriterionTriggers.m.a(entityplayer, (Entity) entitywither); } - world.addEntity(entitywither); |