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.
This commit is contained in:
GeChallengeM
2019-07-07 21:46:14 +02:00
parent 7536d70b72
commit 12749a6270

View File

@@ -119,15 +119,14 @@ public class SafeSpotPlugin extends Plugin
updateSafeSpots();
}
}
else if (tickCount > 0)
{
tickCount--;
}
else
{
safeSpotsRenderable = false;
}
if (tickCount > 0)
{
tickCount--;
safeSpotsRenderable = true;
}
}
/**