ground items: make loot beams work with only show loot

This commit is contained in:
Hydrox6
2021-07-23 16:21:30 -04:00
committed by Adam
parent c5514740e4
commit a627181455
@@ -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)