From 91ee2303b807d6951088b377d8323bb486f716fa Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 23 Apr 2023 01:09:14 +0200 Subject: Disabled bz button logics from visitor items and composter items for ironman, stranded and bingo --- .../at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 2 +- .../hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt index 10e62c394..a3771a98d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt @@ -369,7 +369,7 @@ class ComposterOverlay { val name = itemName.substring(0, 2) + selected + rawItemName list.add(Renderable.link("$name§r §8x${itemsNeeded.addSeparators()} §7(§6$format§7)") { onClick(internalName) - if (LorenzUtils.isControlKeyDown()) { + if (LorenzUtils.isControlKeyDown() && !LorenzUtils.noTradeMode) { inInventory = false LorenzUtils.sendCommandToServer("bz $rawItemName") OSUtils.copyToClipboard("${itemsNeeded.toInt()}") 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 5aa1a4128..3f27138b8 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 @@ -140,7 +140,7 @@ class GardenVisitorFeatures { list.add(Renderable.optionalLink("$name §8x${amount.addSeparators()}", { if (Minecraft.getMinecraft().currentScreen is GuiEditSign) { LorenzUtils.setTextIntoSign("$amount") - } else if (!InventoryUtils.inStorage()) { + } else if (!InventoryUtils.inStorage() && !LorenzUtils.noTradeMode) { LorenzUtils.sendCommandToServer("bz ${name.removeColor()}") OSUtils.copyToClipboard("$amount") } -- cgit