aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 20:36:19 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 20:36:19 +0200
commit1511531973e8654b8b1fc0cea20a14c857d21ebf (patch)
treeb25c952deb96010573935a08a28b2526f57c9325 /src/main
parenta97fb36063f121f1028a7987ae9a63a03c9c2c8f (diff)
downloadskyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.tar.gz
skyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.tar.bz2
skyhanni-1511531973e8654b8b1fc0cea20a14c857d21ebf.zip
renamed hide backpack to hide in storage
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt10
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