diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-01-06 18:35:16 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-01-06 18:35:16 -0500 |
commit | f2cf64f5b1a4894a1e6056efaafff165e41071e2 (patch) | |
tree | 3ae6bfd3987ae7529d73632737e20c987d62cc5e /src/main/java/me/Danker/DankersSkyblockMod.java | |
parent | dda83961a0922b5753c7d4dd3e239a925d3afa7a (diff) | |
download | SkyblockMod-f2cf64f5b1a4894a1e6056efaafff165e41071e2.tar.gz SkyblockMod-f2cf64f5b1a4894a1e6056efaafff165e41071e2.tar.bz2 SkyblockMod-f2cf64f5b1a4894a1e6056efaafff165e41071e2.zip |
Actually fix dungeon coins spent
Diffstat (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 91f561a..d1d2d10 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -486,11 +486,8 @@ public class DankersSkyblockMod { if (slot == null) return; ItemStack item = slot.getStack(); String inventoryName = inventory.getDisplayName().getUnformattedText(); - if (item == null) { - if (MinecraftForge.EVENT_BUS.post(new ChestSlotClickedEvent(chest, inventory, inventoryName, slot))) event.setCanceled(true); - } else { - if (MinecraftForge.EVENT_BUS.post(new ChestSlotClickedEvent(chest, inventory, inventoryName, slot, item))) event.setCanceled(true); - } + + if (MinecraftForge.EVENT_BUS.post(new ChestSlotClickedEvent(chest, inventory, inventoryName, slot, item))) event.setCanceled(true); } } } |