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:
@@ -195,8 +195,7 @@ public class GroundItemsPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
if (event.getGameState() == GameState.LOGGED_IN)
|
if (event.getGameState() == GameState.LOGGED_IN)
|
||||||
{
|
{
|
||||||
groundItems.clear();
|
dirty = true;
|
||||||
collectedGroundItems.clear();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user