diff --git a/src/main/java/org/samo_lego/golfiv/event/combat/InventoryHitCheck.java b/src/main/java/org/samo_lego/golfiv/event/combat/InventoryHitCheck.java index 38edd2d..1586436 100644 --- a/src/main/java/org/samo_lego/golfiv/event/combat/InventoryHitCheck.java +++ b/src/main/java/org/samo_lego/golfiv/event/combat/InventoryHitCheck.java @@ -27,6 +27,7 @@ public InventoryHitCheck() { */ @Override public ActionResult interact(PlayerEntity player, World world, Hand hand, Entity entity, @Nullable EntityHitResult hitResult) { + if(world.isClient())return ActionResult.PASS; return golfConfig.main.checkInventoryActions && ((Golfer) player).hasOpenGui() ? ActionResult.FAIL : ActionResult.PASS; } }