From 19bd1f5c67efb470baab01a520eb0868e8a425d4 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Sat, 31 Mar 2018 20:17:08 +0200 Subject: [PATCH] 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 --- .../runelite/client/plugins/grounditems/GroundItemsPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java index 6f23e313c5..f9e97919d3 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java @@ -195,8 +195,7 @@ public class GroundItemsPlugin extends Plugin { if (event.getGameState() == GameState.LOGGED_IN) { - groundItems.clear(); - collectedGroundItems.clear(); + dirty = true; } }