From 944585ea2f72250fb11e1eaa00862a7a6d181ae6 Mon Sep 17 00:00:00 2001 From: samolego <34912839+samolego@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:59:35 +0100 Subject: [PATCH] Fixes #54 --- .../org/samo_lego/simpleauth/event/AuthEventHandlerForge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }