diff --git a/forge/src/main/java/org/samo_lego/simpleauth/event/AuthEventHandlerForge.java b/forge/src/main/java/org/samo_lego/simpleauth/event/AuthEventHandlerForge.java index d94f2ab..036752e 100644 --- a/forge/src/main/java/org/samo_lego/simpleauth/event/AuthEventHandlerForge.java +++ b/forge/src/main/java/org/samo_lego/simpleauth/event/AuthEventHandlerForge.java @@ -38,7 +38,7 @@ public class AuthEventHandlerForge { @SubscribeEvent(priority = HIGHEST) public static void onAttackBlock(PlayerInteractEvent.LeftClickBlock event) { PlayerEntity player = event.getPlayer(); - if(AuthEventHandler.onBreakBlock(player)) { + if(!AuthEventHandler.onBreakBlock(player)) { event.setCanceled(true); } }