opponentinfo: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 16:01:12 +02:00
parent d99f39d62d
commit 121ace86d1

View File

@@ -163,13 +163,12 @@ public class OpponentInfoPlugin extends Plugin
{
if (lastOpponent != null
&& lastTime != null
&& client.getLocalPlayer().getInteracting() == null)
&& client.getLocalPlayer().getInteracting() == null
&& Duration.between(lastTime, Instant.now()).compareTo(WAIT) > 0)
{
if (Duration.between(lastTime, Instant.now()).compareTo(WAIT) > 0)
{
lastOpponent = null;
}
lastOpponent = null;
}
}
@Subscribe