diff options
author | HiZe_ <superhize@hotmail.com> | 2023-06-04 12:54:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-04 12:54:46 +0200 |
commit | 4c1f8d0fd535ffe7d5d37f0827e06dbc8123fdbb (patch) | |
tree | 784a367297b509bd5fa26248a5a2baff90a06845 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 0de6356eba9ac00b7a32aa7ab486d21e13fd2d08 (diff) | |
download | skyhanni-4c1f8d0fd535ffe7d5d37f0827e06dbc8123fdbb.tar.gz skyhanni-4c1f8d0fd535ffe7d5d37f0827e06dbc8123fdbb.tar.bz2 skyhanni-4c1f8d0fd535ffe7d5d37f0827e06dbc8123fdbb.zip |
Fixed compatibility with Skytils and Patcher (#207)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenPlotIcon.kt | 3 |
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) |