From 7771c7c28264baf71cb52bf578933546627ff6dc Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Sun, 30 Jun 2024 03:48:12 +0200 Subject: [PATCH] Fix wrong cancel --- .../townyadvanced/townymenus/listeners/InventoryListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/townyadvanced/townymenus/listeners/InventoryListener.java b/src/main/java/io/github/townyadvanced/townymenus/listeners/InventoryListener.java index 22f521a..b691482 100644 --- a/src/main/java/io/github/townyadvanced/townymenus/listeners/InventoryListener.java +++ b/src/main/java/io/github/townyadvanced/townymenus/listeners/InventoryListener.java @@ -68,6 +68,6 @@ public void onInventoryDrag(final InventoryDragEvent event) { if (!(PaperLib.getHolder(event.getInventory(), false).getHolder() instanceof MenuInventory menu)) return; - event.setCancelled(false); + event.setCancelled(true); } }