diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-05 16:09:43 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-05 16:09:43 +0100 |
| commit | d4b684fb35fb97fdf7a7548555dc8eb0a9dda2a9 (patch) | |
| tree | dedbeb3c0ddc551a03da869208d7ffc47952d91e /src/main/java/at/hannibal2/skyhanni/features/misc | |
| parent | 940095657152c8a0323f1c261c1454b8035bea61 (diff) | |
| download | skyhanni-d4b684fb35fb97fdf7a7548555dc8eb0a9dda2a9.tar.gz skyhanni-d4b684fb35fb97fdf7a7548555dc8eb0a9dda2a9.tar.bz2 skyhanni-d4b684fb35fb97fdf7a7548555dc8eb0a9dda2a9.zip | |
no more hidden stuff: renamed "config" and "hidden" to "storage" when working with stuff from ProfileStorageData
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt | 8 |
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 |
