aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrunoGamerGH <104372237+BrunoGamerGH@users.noreply.github.com>2023-07-29 05:56:51 -0300
committerGitHub <noreply@github.com>2023-07-29 10:56:51 +0200
commit2a3652012a46bcad4ad0cc896a5a8f290e6f62c3 (patch)
tree159f435e21eb895e32ebb6e5051b70b28a59d2a2 /src
parent9e9e603128925eb02f67710166e221094a2bbd94 (diff)
downloadskyhanni-2a3652012a46bcad4ad0cc896a5a8f290e6f62c3.tar.gz
skyhanni-2a3652012a46bcad4ad0cc896a5a8f290e6f62c3.tar.bz2
skyhanni-2a3652012a46bcad4ad0cc896a5a8f290e6f62c3.zip
Fix not being able to edit gui components when having more than 1 page of Rift Storage (#341)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt
index 54ea399bb..dd4a264ac 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt
@@ -42,7 +42,7 @@ object InventoryUtils {
fun getArmor(): Array<ItemStack?> = Minecraft.getMinecraft().thePlayer.inventory.armorInventory
fun inStorage() =
- openInventoryName().let { (it.contains("Storage") && it != "Rift Storage") || it.contains("Ender Chest") || it.contains("Backpack")}
+ openInventoryName().let { (it.contains("Storage") && !it.contains("Rift Storage")) || it.contains("Ender Chest") || it.contains("Backpack")}
fun getItemInHand(): ItemStack? = Minecraft.getMinecraft().thePlayer.heldItem
} \ No newline at end of file