lizardmenshaman: Merge nested if statements
This commit is contained in:
@@ -102,14 +102,11 @@ public class LizardmenShamanPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onChatMessage(ChatMessage event)
|
||||
{
|
||||
if (this.notifyOnSpawn)
|
||||
{
|
||||
if (event.getMessage().contains(MESSAGE))
|
||||
if (this.notifyOnSpawn && event.getMessage().contains(MESSAGE))
|
||||
{
|
||||
notifier.notify(MESSAGE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onAnimationChanged(AnimationChanged event)
|
||||
@@ -120,14 +117,11 @@ public class LizardmenShamanPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (actor.getName().equals(SHAMAN) && actor.getAnimation() == 7157)
|
||||
{
|
||||
if (this.showTimer)
|
||||
if (actor.getName().equals(SHAMAN) && actor.getAnimation() == 7157 && this.showTimer)
|
||||
{
|
||||
spawns.put(event.getActor().getLocalLocation(), new LizardmenShamanSpawn(8.4, null));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onConfigChanged(ConfigChanged event)
|
||||
|
||||
@@ -63,13 +63,10 @@ class ShamanSpawnOverlay extends Overlay
|
||||
final long startCountdown = Duration.between(spawn.getStart(), now).getSeconds();
|
||||
final double certainSec = spawn.getCountdownTimer() - startCountdown;
|
||||
|
||||
if (certainSec <= 0)
|
||||
{
|
||||
if (spawn.getEnd() == null)
|
||||
if (certainSec <= 0 && spawn.getEnd() == null)
|
||||
{
|
||||
spawn.setEnd(Instant.now());
|
||||
}
|
||||
}
|
||||
|
||||
final ProgressPieComponent pieComponent = new ProgressPieComponent();
|
||||
final Point loc = Perspective.localToCanvas(client, localPoint, client.getPlane());
|
||||
|
||||
Reference in New Issue
Block a user