Merge pull request #438 from runelite-extended/barrows

NPE Fix for Barrows
This commit is contained in:
Tyler Bochard
2019-05-29 19:50:40 -04:00
committed by GitHub

View File

@@ -257,6 +257,8 @@ public class BarrowsPlugin extends Plugin
puzzleAnswer = null; puzzleAnswer = null;
} }
else if (event.getGameState() == GameState.LOGGED_IN) else if (event.getGameState() == GameState.LOGGED_IN)
{
if (client.getLocalPlayer() != null)
{ {
boolean isInCrypt = isInCrypt(); boolean isInCrypt = isInCrypt();
if (wasInCrypt && !isInCrypt) if (wasInCrypt && !isInCrypt)
@@ -269,6 +271,7 @@ public class BarrowsPlugin extends Plugin
} }
} }
} }
}
@Subscribe @Subscribe
public void onWidgetLoaded(WidgetLoaded event) public void onWidgetLoaded(WidgetLoaded event)