issues
search
Infinitay
/
essence-pouch-tracker
A RuneLite plugin that tracks both the amount of essence stored in your essence pouches and the amount of essence until decay.
https://runelite.net/plugin-hub/show/essence-pouch-tracking
BSD 2-Clause "Simplified" License
0
stars
1
forks
source link
Refactor load state
#11
Closed
Infinitay
closed
1 month ago
Infinitay
commented
1 month ago
Fixed an issue where the state was not being loaded after a user turns the plugin on
Separate from first log-in
User is already logged in -> (Turns plugin off) -> Turns plugin on -> Previous state would not be loaded
Remove EssencePouchTrackingPlugin#initializePouches since the method was being called once
Moved
this.pouches
pouch map initialization into EssencePouchTrackingPlugin#updateTrackingState
When loading the previous state, loop through every known essence pouch (
EssencePouches
) instead of just pouch map (
this.pouches
)
this.pouches
pouch map initialization into EssencePouchTrackingPlugin#updateTrackingStateEssencePouches
) instead of just pouch map (this.pouches
)