barrows: Combine nested if statements
This commit is contained in:
@@ -289,9 +289,7 @@ public class BarrowsPlugin extends Plugin
|
||||
ladders.clear();
|
||||
puzzleAnswer = null;
|
||||
}
|
||||
else if (event.getGameState() == GameState.LOGGED_IN)
|
||||
{
|
||||
if (client.getLocalPlayer() != null)
|
||||
else if (event.getGameState() == GameState.LOGGED_IN && client.getLocalPlayer() != null)
|
||||
{
|
||||
boolean isInCrypt = isInCrypt();
|
||||
if (wasInCrypt && !isInCrypt)
|
||||
@@ -304,7 +302,6 @@ public class BarrowsPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onWidgetLoaded(WidgetLoaded event)
|
||||
|
||||
Reference in New Issue
Block a user