aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-04 12:55:23 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-04 12:55:23 +0200
commit0d8183794b3342e7cc0a1f306612c18d10952693 (patch)
tree500984ea9a1e39232a1e6c60f59ccac708bc8bc9 /src/main/java/at/hannibal2/skyhanni
parent105c59ba17ba541701e82c16eee691413f76dfd2 (diff)
parent4c1f8d0fd535ffe7d5d37f0827e06dbc8123fdbb (diff)
downloadskyhanni-0d8183794b3342e7cc0a1f306612c18d10952693.tar.gz
skyhanni-0d8183794b3342e7cc0a1f306612c18d10952693.tar.bz2
skyhanni-0d8183794b3342e7cc0a1f306612c18d10952693.zip
Merge remote-tracking branch 'origin/beta' into beta
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt
index e5df053fd..fb48d73fb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt
@@ -31,6 +31,7 @@ object GardenPlotIcon {
private var originalStack = mutableMapOf<Int, ItemStack>()
private var cachedStack = mutableMapOf<Int, ItemStack>()
private val editStack = ItemStack(Items.wooden_axe)
+ private val whitelistedSlot = listOf(2, 3, 4, 5, 6, 11, 12, 13, 14, 15, 20, 21, 23, 24, 29, 30, 31, 32, 33, 38, 39, 40, 41, 42)
var hardReset = false
@@ -111,7 +112,7 @@ object GardenPlotIcon {
}
if (event.slotId != 53) {
val plotList = plotList ?: return
- if (!event.slot.stack.displayName.removeColor().startsWith("Plot")) return
+ if (!whitelistedSlot.contains(event.slotId)) return
event.isCanceled = true
if (editMode == 2) {
plotList.remove(event.slotId)