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