diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-18 21:01:44 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-18 21:01:44 +0200 |
commit | f767756fa0c01e8551639064a872e56c2678ff59 (patch) | |
tree | 2c8b616b95de1637dcc3fe4b08de4812bf9decca /src/main/java/at/hannibal2/skyhanni/features | |
parent | a06d89cdba845ee7f5f8418ad3502f5d9edc3cfc (diff) | |
download | skyhanni-f767756fa0c01e8551639064a872e56c2678ff59.tar.gz skyhanni-f767756fa0c01e8551639064a872e56c2678ff59.tar.bz2 skyhanni-f767756fa0c01e8551639064a872e56c2678ff59.zip |
Do not open skyhanni gui hotkey or bazaar commands while inside the storage inventories
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index a5506bf5e..fe792b71e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -139,12 +139,11 @@ class GardenVisitorFeatures { list.add(Renderable.optionalLink("$name ยง8x${amount.addSeparators()}", { if (Minecraft.getMinecraft().currentScreen is GuiEditSign) { LorenzUtils.setTextIntoSign("$amount") - } else { + } else if (!InventoryUtils.inStorage()) { val thePlayer = Minecraft.getMinecraft().thePlayer - val baseName = name.removeColor() - thePlayer.sendChatMessage("/bz $baseName"); + thePlayer.sendChatMessage("/bz ${name.removeColor()}"); } - }) { GardenAPI.inGarden() }) + }) { GardenAPI.inGarden() && InventoryUtils.inStorage() }) if (config.visitorNeedsShowPrice) { val price = NEUItems.getPrice(internalName) * amount |