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,15 +125,13 @@ public class TearsOfGuthixPlugin extends Plugin
{ {
DecorativeObject object = event.getDecorativeObject(); DecorativeObject object = event.getDecorativeObject();
if (object.getId() == ObjectID.BLUE_TEARS || if ((object.getId() == ObjectID.BLUE_TEARS ||
object.getId() == ObjectID.BLUE_TEARS_6665) 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());
} }
} }
}
@Subscribe @Subscribe
public void onDecorativeObjectDespawned(DecorativeObjectDespawned event) public void onDecorativeObjectDespawned(DecorativeObjectDespawned event)