From bbba0adc2ee9e6e1034ca79c8b27cbe08599e1e8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 9 Mar 2023 21:42:23 +0100 Subject: cancel click on desk item. --- .../java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt index fc060bad5..e62591e47 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt @@ -43,6 +43,7 @@ class GardenDeskInSBMenu { @SubscribeEvent(priority = EventPriority.HIGH) fun onStackClick(event: SlotClickEvent) { if (showItem && event.slotId == 10) { + event.isCanceled = true val thePlayer = Minecraft.getMinecraft().thePlayer thePlayer.sendChatMessage("/desk") } -- cgit