fightcave: MErge nested if statements
This commit is contained in:
@@ -171,14 +171,11 @@ public class FightCavePlugin extends Plugin
|
|||||||
{
|
{
|
||||||
updateConfig();
|
updateConfig();
|
||||||
|
|
||||||
if (client.getGameState() == GameState.LOGGED_IN)
|
if (client.getGameState() == GameState.LOGGED_IN && regionCheck())
|
||||||
{
|
{
|
||||||
if (regionCheck())
|
validRegion = true;
|
||||||
{
|
overlayManager.add(waveOverlay);
|
||||||
validRegion = true;
|
overlayManager.add(fightCaveOverlay);
|
||||||
overlayManager.add(waveOverlay);
|
|
||||||
overlayManager.add(fightCaveOverlay);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user