Invalidate ground items cache properly

Instead of clearing ground items after game state change, just mark the
ground items dirty.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-31 20:17:08 +02:00
parent 4878cf14a2
commit 19bd1f5c67

View File

@@ -195,8 +195,7 @@ public class GroundItemsPlugin extends Plugin
{
if (event.getGameState() == GameState.LOGGED_IN)
{
groundItems.clear();
collectedGroundItems.clear();
dirty = true;
}
}