From b8f84f375b2c82aa9448c4492cf7a8146cb077aa Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 13 Oct 2017 21:47:55 +1100 Subject: Fix bad diff --- nms-patches/TileEntityBeacon.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nms-patches/TileEntityBeacon.patch') diff --git a/nms-patches/TileEntityBeacon.patch b/nms-patches/TileEntityBeacon.patch index a0e0edae..477bd68e 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); } -- cgit v1.2.3