From a627181455898ae7cf85bd3ba7de53692fa03f7b Mon Sep 17 00:00:00 2001 From: Hydrox6 Date: Thu, 22 Jul 2021 11:02:36 +0100 Subject: [PATCH] ground items: make loot beams work with only show loot --- .../client/plugins/grounditems/GroundItemsPlugin.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 a9e479885e..655ae55fc7 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 @@ -392,6 +392,13 @@ public class GroundItemsPlugin extends Plugin } } } + + // Since the loot can potentially be over multiple tiles, make sure to process lootbeams on all those tiles + items.stream() + .map(ItemStack::getLocation) + .map(l -> WorldPoint.fromLocal(client, l)) + .distinct() + .forEach(this::handleLootbeam); } private GroundItem buildGroundItem(final Tile tile, final TileItem item)