diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 20:36:19 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 20:36:19 +0200 |
commit | 1511531973e8654b8b1fc0cea20a14c857d21ebf (patch) | |
tree | b25c952deb96010573935a08a28b2526f57c9325 /src/main/java/at | |
parent | a97fb36063f121f1028a7987ae9a63a03c9c2c8f (diff) | |
download | skyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.tar.gz skyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.tar.bz2 skyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.zip |
renamed hide backpack to hide in storage
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt index 8c7a18ed2..9827d3aab 100644 --- a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt @@ -30,14 +30,14 @@ class HideNotClickableItems { private var bypassUntil = 0L private val hideNpcSellList = MultiFilter() - private val hideBackpackList = MultiFilter() + private val hideInStorageList = MultiFilter() @SubscribeEvent fun onRepoReload(event: RepositoryReloadEvent) { try { val hideNotClickableItems = event.getConstant("HideNotClickableItems")!! hideNpcSellList.load(hideNotClickableItems["hide_npc_sell"].asJsonObject) - hideBackpackList.load(hideNotClickableItems["hide_backpack"].asJsonObject) + hideInStorageList.load(hideNotClickableItems["hide_in_storage"].asJsonObject) } catch (e: Exception) { e.printStackTrace() LorenzUtils.error("error in RepositoryReloadEvent") @@ -151,7 +151,7 @@ class HideNotClickableItems { hideReason = "" return when { hideNpcSell(chestName, stack) -> true - hideChestBackpack(chestName, stack) -> true + hideInStorage(chestName, stack) -> true hideSalvage(chestName, stack) -> true hideTrade(chestName, stack) -> true hideBazaarOrAH(chestName, stack) -> true @@ -273,7 +273,7 @@ class HideNotClickableItems { return true } - private fun hideChestBackpack(chestName: String, stack: ItemStack): Boolean { + private fun hideInStorage(chestName: String, stack: ItemStack): Boolean { if (!chestName.contains("Ender Chest") && !chestName.contains("Backpack") && chestName != "Storage") return false val name = stack.cleanName() @@ -287,7 +287,7 @@ class HideNotClickableItems { return true } - val result = hideBackpackList.match(name) + val result = hideInStorageList.match(name) if (result) hideReason = "Bags cannot be put into the storage!" return result |