tearsofguthix: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 21:27:56 +02:00
parent 6bc9a5b182
commit 3e8c24c773

View File

@@ -125,13 +125,11 @@ public class TearsOfGuthixPlugin extends Plugin
{
DecorativeObject object = event.getDecorativeObject();
if (object.getId() == ObjectID.BLUE_TEARS ||
object.getId() == ObjectID.BLUE_TEARS_6665)
if ((object.getId() == ObjectID.BLUE_TEARS ||
object.getId() == ObjectID.BLUE_TEARS_6665) &&
client.getLocalPlayer().getWorldLocation().getRegionID() == TOG_REGION)
{
if (client.getLocalPlayer().getWorldLocation().getRegionID() == TOG_REGION)
{
streams.put(event.getDecorativeObject(), Instant.now());
}
streams.put(event.getDecorativeObject(), Instant.now());
}
}