mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
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:
parent
212b42c8b9
commit
e8152a3475
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user