Merge pull request #2524 from deathbeam/fix-ground-items-layer
Add ItemLayer height to GroundItems overlay
This commit is contained in:
@@ -38,6 +38,7 @@ class GroundItem
|
||||
private String name;
|
||||
private int quantity;
|
||||
private WorldPoint location;
|
||||
private int height;
|
||||
private int haPrice;
|
||||
private int gePrice;
|
||||
|
||||
|
||||
@@ -181,7 +181,8 @@ public class GroundItemsOverlay extends Overlay
|
||||
final Point textPoint = Perspective.getCanvasTextLocation(client,
|
||||
graphics,
|
||||
groundPoint,
|
||||
itemString, OFFSET_Z);
|
||||
itemString,
|
||||
item.getHeight() + OFFSET_Z);
|
||||
|
||||
if (textPoint == null)
|
||||
{
|
||||
|
||||
@@ -265,6 +265,7 @@ public class GroundItemsPlugin extends Plugin
|
||||
|
||||
if (groundItem != null)
|
||||
{
|
||||
groundItem.setHeight(itemLayer.getHeight());
|
||||
groundItems.add(groundItem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user