diff --git a/nms-patches/TileEntityBeacon.patch b/nms-patches/TileEntityBeacon.patch index a0e0edae9c..477bd68ec1 100644 --- a/nms-patches/TileEntityBeacon.patch +++ b/nms-patches/TileEntityBeacon.patch @@ -114,7 +114,11 @@ - iterator = list.iterator(); + return true; + } -+ + +- while (iterator.hasNext()) { +- entityhuman = (EntityHuman) iterator.next(); +- entityhuman.addEffect(new MobEffect(this.secondaryEffect, i, 0, true, true)); +- } + return false; + } + } @@ -127,11 +131,7 @@ + List list = getHumansInRange(); + + applyEffect(list, this.primaryEffect, i, b0); - -- while (iterator.hasNext()) { -- entityhuman = (EntityHuman) iterator.next(); -- entityhuman.addEffect(new MobEffect(this.secondaryEffect, i, 0, true, true)); -- } ++ + if (hasSecondaryEffect()) { + applyEffect(list, this.secondaryEffect, i, 0); }