Skip to content

Commit

Permalink
Merge pull request #70 from Dev0Louis/golfive
Browse files Browse the repository at this point in the history
Fixed Client Side Crash :D
  • Loading branch information
samolego authored Mar 29, 2023
2 parents 9048e5a + bce386f commit 66ecbc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 66ecbc6

Please sign in to comment.