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