From 04cf4c4e0dcdad4b9a7c2f393634fcf5f05fbd33 Mon Sep 17 00:00:00 2001 From: Tech <49742865+DebitCardz@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:02:37 -0400 Subject: [PATCH] fix: ui event (#27) --- .../me/tech/mcchestui/listeners/item/GUIItemPickupListener.kt | 2 -- .../me/tech/mcchestui/listeners/item/GUIItemPlaceListener.kt | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPickupListener.kt b/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPickupListener.kt index 63aac2a..f18b724 100644 --- a/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPickupListener.kt +++ b/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPickupListener.kt @@ -39,8 +39,6 @@ internal class GUIItemPickupListener(gui: GUI): GUIEventListener(gui) { isCancelled = true return } - } else { - return } val guiSlot = gui.slots.getOrNull(slot) diff --git a/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPlaceListener.kt b/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPlaceListener.kt index 73834b2..066d0e9 100644 --- a/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPlaceListener.kt +++ b/src/main/kotlin/me/tech/mcchestui/listeners/item/GUIItemPlaceListener.kt @@ -38,8 +38,6 @@ internal class GUIItemPlaceListener(gui: GUI) : GUIEventListener(gui) { isCancelled = true return } - } else { - return } val guiSlot = gui.slots.getOrNull(slot)