From 95fdbb6321e009b912298ee9745e9573accbbba0 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Sun, 19 Jan 2025 16:11:34 +0100 Subject: [PATCH] Prevent all interactions --- .../org/geysermc/globallinkserver/GlobalLinkServer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/geysermc/globallinkserver/GlobalLinkServer.java b/src/main/java/org/geysermc/globallinkserver/GlobalLinkServer.java index 2fa69c3..6cb017a 100644 --- a/src/main/java/org/geysermc/globallinkserver/GlobalLinkServer.java +++ b/src/main/java/org/geysermc/globallinkserver/GlobalLinkServer.java @@ -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