lejeffe / MonsterHP

Show the current monster hp based on either percentage remaining or current hp
BSD 2-Clause "Simplified" License
0 stars 10 forks source link

Fix #4 #18

Closed Thource closed 1 year ago

Thource commented 1 year ago

This PR fixes issue #4

Hi, I'm the developer of Dude, Where's My Stuff?, this is hanging around in my issues, so I thought I'd explain what's happening here and put in a fix.

My plugin persists the user's inventory data in their runelite config and it does this every tick (not ideal, I'll be changing it in the future). Every time any part of the runelite config updates, you are refreshing your plugin's data, which means that the counter gets reset.

I've fixed this by putting a check in your onConfigChanged to make sure that the config change is one that you actually care about :)