summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
index e4b962281..4dfebc099 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
@@ -48,7 +48,7 @@ class CurrentPetDisplay {
@SubscribeEvent
fun onInventoryOpen(event: InventoryFullyOpenedEvent) {
- val config = ProfileStorageData.profileSpecific ?: return
+ val storage = ProfileStorageData.profileSpecific ?: return
if (!inventoryNamePattern.matcher(event.inventoryName).matches()) return
val lore = event.inventoryItems[4]?.getLore() ?: return
@@ -56,7 +56,7 @@ class CurrentPetDisplay {
for (line in lore) {
selectedPetPattern.matchMatcher(line) {
val newPet = group("pet")
- config.currentPet = if (newPet != "§cNone") newPet else ""
+ storage.currentPet = if (newPet != "§cNone") newPet else ""
}
}
}
@@ -67,9 +67,9 @@ class CurrentPetDisplay {
if (RiftAPI.inRift()) return
if (!SkyHanniMod.feature.misc.pets.display) return
- val config = ProfileStorageData.profileSpecific ?: return
+ val storage = ProfileStorageData.profileSpecific ?: return
- SkyHanniMod.feature.misc.petDisplayPos.renderString(config.currentPet, posLabel = "Current Pet")
+ SkyHanniMod.feature.misc.petDisplayPos.renderString(storage.currentPet, posLabel = "Current Pet")
}
@SubscribeEvent