aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 01:09:14 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 01:09:14 +0200
commit91ee2303b807d6951088b377d8323bb486f716fa (patch)
treec5eea3f5fba8372e82efa6c466f8cf53e7ac25ef /src/main
parent1d2378ae415026dad4e09aecf6f37edb0d7c711e (diff)
downloadskyhanni-91ee2303b807d6951088b377d8323bb486f716fa.tar.gz
skyhanni-91ee2303b807d6951088b377d8323bb486f716fa.tar.bz2
skyhanni-91ee2303b807d6951088b377d8323bb486f716fa.zip
Disabled bz button logics from visitor items and composter items for ironman, stranded and bingo
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt2
2 files changed, 2 insertions, 2 deletions
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")
}