Skip to content

Commit

Permalink
Prevent all interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Jan 19, 2025
1 parent 9f4608e commit 95fdbb6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,8 @@ public void onFoodLevelChange(FoodLevelChangeEvent event) {

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
// Prevent crop trampling
if (event.getAction() == Action.PHYSICAL) {
event.setCancelled(true);
}
// Prevent any kind of interaction
event.setCancelled(true);
}

@EventHandler
Expand Down

0 comments on commit 95fdbb6

Please sign in to comment.