From e8152a3475f28e65b0d8d616fb485db5e4d9cea0 Mon Sep 17 00:00:00 2001 From: mastershake71 Date: Sun, 18 Nov 2012 23:25:36 -0500 Subject: [PATCH] Solves nuker dupe glitch. Not all anti-cheat block damage, so check and make sure both are allowed not just one. --- src/main/java/com/gmail/nossr50/util/Misc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index 318585f46..2ce55c830 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/src/main/java/com/gmail/nossr50/util/Misc.java @@ -121,7 +121,7 @@ public class Misc { FakeBlockBreakEvent breakEvent = new FakeBlockBreakEvent(block, player); pluginManger.callEvent(breakEvent); - if (!damageEvent.isCancelled() || !breakEvent.isCancelled()) { + if (!damageEvent.isCancelled() && !breakEvent.isCancelled()) { return true; } else {