zulrah: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 21:58:40 +02:00
parent 3511158cbc
commit 39db9979f7

View File

@@ -212,11 +212,7 @@ public class ZulrahPlugin extends Plugin
} }
Actor actor = event.getActor(); Actor actor = event.getActor();
if (config.sounds()) if (config.sounds() && zulrah != null && zulrah.equals(actor) && zulrah.getAnimation() == AnimationID.ZULRAH_PHASE)
{
if (zulrah != null && zulrah.equals(actor))
{
if (zulrah.getAnimation() == AnimationID.ZULRAH_PHASE)
{ {
Prayer prayer = instance.getNextPhase().getPrayer(); Prayer prayer = instance.getNextPhase().getPrayer();
@@ -234,8 +230,6 @@ public class ZulrahPlugin extends Plugin
} }
} }
} }
}
}
@Subscribe @Subscribe
public void onNpcSpawned(NpcSpawned event) public void onNpcSpawned(NpcSpawned event)