loot tracker: fix cox loot being double-counted after region load

It is possible to hit region loads in cox after checking the chest once, so additionally check we are no longer in an instance.
This commit is contained in:
Damen
2020-06-08 16:23:20 -04:00
committed by GitHub
parent 5048058422
commit c40db2f812

View File

@@ -370,7 +370,7 @@ public class LootTrackerPlugin extends Plugin
@Subscribe
public void onGameStateChanged(final GameStateChanged event)
{
if (event.getGameState() == GameState.LOADING)
if (event.getGameState() == GameState.LOADING && !client.isInInstancedRegion())
{
chestLooted = false;
}