Incorporate height into the GroundItems overlay

This commit is contained in:
oplosthee
2018-01-24 15:18:29 +01:00
parent 6e8c48774b
commit 300fa9c8f6
4 changed files with 16 additions and 5 deletions

View File

@@ -228,7 +228,7 @@ public class GroundItemsOverlay extends Overlay
for (int i = 0; i < itemIds.size(); ++i)
{
Point point = itemLayer.getCanvasLocation();
Point point = itemLayer.getCanvasLocation(itemLayer.getHeight());
// if the item is offscreen, don't bother drawing it
if (point == null || (viewport != null && !viewport.contains(point)))
{