Solves nuker dupe glitch. Not all anti-cheat block damage, so check

and make sure both are allowed not just one.
This commit is contained in:
mastershake71 2012-11-18 23:25:36 -05:00
parent 212b42c8b9
commit e8152a3475

View File

@ -121,7 +121,7 @@ public class Misc {
FakeBlockBreakEvent breakEvent = new FakeBlockBreakEvent(block, player); FakeBlockBreakEvent breakEvent = new FakeBlockBreakEvent(block, player);
pluginManger.callEvent(breakEvent); pluginManger.callEvent(breakEvent);
if (!damageEvent.isCancelled() || !breakEvent.isCancelled()) { if (!damageEvent.isCancelled() && !breakEvent.isCancelled()) {
return true; return true;
} }
else { else {