aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-10-28 12:32:36 -0500
committeringle <inglettronald@gmail.com>2022-10-28 12:32:36 -0500
commit798b38e5f3579469192916b69427ce46127deead (patch)
tree6d2fc72408e5288549c90408472b3b6e12b0d8b8 /src
parentbfa2b37155711e2a907f15d6e56d18378ae4f723 (diff)
downloadDulkirMod-798b38e5f3579469192916b69427ce46127deead.tar.gz
DulkirMod-798b38e5f3579469192916b69427ce46127deead.tar.bz2
DulkirMod-798b38e5f3579469192916b69427ce46127deead.zip
= fix croesus features unloading player inventory slots
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/dulkirmod/features/Croesus.kt1
1 files changed, 1 insertions, 0 deletions
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]