summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-10-13 21:47:55 +1100
committermd_5 <git@md-5.net>2017-10-13 21:47:55 +1100
commitb8f84f375b2c82aa9448c4492cf7a8146cb077aa (patch)
treec210bd6bc7dff6995a653cb495f782ffec7ea968 /nms-patches
parentef2f38267f4e137abf7e256460fc96b89860fb5b (diff)
downloadcraftbukkit-b8f84f375b2c82aa9448c4492cf7a8146cb077aa.tar
craftbukkit-b8f84f375b2c82aa9448c4492cf7a8146cb077aa.tar.gz
craftbukkit-b8f84f375b2c82aa9448c4492cf7a8146cb077aa.tar.lz
craftbukkit-b8f84f375b2c82aa9448c4492cf7a8146cb077aa.tar.xz
craftbukkit-b8f84f375b2c82aa9448c4492cf7a8146cb077aa.zip
Fix bad diff
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/TileEntityBeacon.patch12
1 files changed, 6 insertions, 6 deletions
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);
}