From 798b38e5f3579469192916b69427ce46127deead Mon Sep 17 00:00:00 2001 From: ingle Date: Fri, 28 Oct 2022 12:32:36 -0500 Subject: = fix croesus features unloading player inventory slots --- src/main/kotlin/dulkirmod/features/Croesus.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/dulkirmod/features/Croesus.kt b/src/main/kotlin/dulkirmod/features/Croesus.kt index 188c6a9..8302167 100644 --- a/src/main/kotlin/dulkirmod/features/Croesus.kt +++ b/src/main/kotlin/dulkirmod/features/Croesus.kt @@ -53,6 +53,7 @@ class Croesus { fun isChestOpened(slotIn: Slot): Boolean { if (!inCroesusBool) return false + if(slotIn.inventory == mc.thePlayer.inventory) return false val slotindex = slotIn.slotIndex if (slotindex !in 9..44) return false return boolArray[slotindex - 9] -- cgit