deathindicator: Combine nested ifs

This commit is contained in:
sdburns1998
2019-07-07 03:51:55 +02:00
parent 4db59fa984
commit 79c08b96d5

View File

@@ -112,13 +112,10 @@ public class DeathIndicatorPlugin extends Plugin
return; return;
} }
if (config.showDeathHintArrow()) if (config.showDeathHintArrow() && !client.hasHintArrow())
{
if (!client.hasHintArrow())
{ {
client.setHintArrow(new WorldPoint(config.deathLocationX(), config.deathLocationY(), config.deathLocationPlane())); client.setHintArrow(new WorldPoint(config.deathLocationX(), config.deathLocationY(), config.deathLocationPlane()));
} }
}
if (config.showDeathOnWorldMap()) if (config.showDeathOnWorldMap())
{ {