Merge pull request #424 from oplosthee/grounditems-height

Incorporate height into the GroundItems overlay
This commit is contained in:
Adam
2018-01-24 14:01:15 -05:00
committed by GitHub
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)))
{