From bce386f350096967ae78d6154da0e9f41ed68b01 Mon Sep 17 00:00:00 2001 From: D1p4k <82884007+D1p4k@users.noreply.github.com> Date: Mon, 27 Mar 2023 22:59:00 +0200 Subject: [PATCH] Fixed Client Side Crash :D --- .../org/samo_lego/golfiv/event/combat/InventoryHitCheck.java | 1 + 1 file changed, 1 insertion(+) 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; } }