npcstatus: Merge nested if statements
This commit is contained in:
@@ -146,9 +146,7 @@ public class NpcStatusPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
final Hitsplat hitsplat = event.getHitsplat();
|
||||
if (hitsplat.getHitsplatType() == Hitsplat.HitsplatType.DAMAGE || hitsplat.getHitsplatType() == Hitsplat.HitsplatType.BLOCK)
|
||||
{
|
||||
if (event.getActor() instanceof NPC)
|
||||
if ((hitsplat.getHitsplatType() == Hitsplat.HitsplatType.DAMAGE || hitsplat.getHitsplatType() == Hitsplat.HitsplatType.BLOCK) && event.getActor() instanceof NPC)
|
||||
{
|
||||
for (MemorizedNPC mn : memorizedNPCs)
|
||||
{
|
||||
@@ -160,7 +158,7 @@ public class NpcStatusPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void checkStatus()
|
||||
|
||||
Reference in New Issue
Block a user