ground items: make loot beams work with only show loot

This commit is contained in:
Hydrox6
2021-07-22 11:02:36 +01:00
committed by Adam
parent c5514740e4
commit a627181455

View File

@@ -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)