From 12749a627099dfbed206a7be35abd11dfb3334fb Mon Sep 17 00:00:00 2001 From: GeChallengeM Date: Sun, 7 Jul 2019 21:46:14 +0200 Subject: [PATCH] Stops the overlay from activating when it's not supposed to. Before this, you could for example get this bug: Have player safespots turned on and NPC safespots turned off. Interact with another player, which creates a safespotlist. After this, whenever you're interacting with an NPC and then stop interacting with it, the overlay would turn on with the tiles from the old playerinteraction safespotlist highlighted for 10 seconds. --- .../runelite/client/plugins/safespot/SafeSpotPlugin.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotPlugin.java index b702b5d17f..e95934a145 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotPlugin.java @@ -119,15 +119,14 @@ public class SafeSpotPlugin extends Plugin updateSafeSpots(); } } + else if (tickCount > 0) + { + tickCount--; + } else { safeSpotsRenderable = false; } - if (tickCount > 0) - { - tickCount--; - safeSpotsRenderable = true; - } } /**