inventory grid: fix showing the replaced item in the initial spot

With the addition of overlays following dragged items this was overlooked.
This commit is contained in:
dekvall
2020-03-10 00:43:40 +01:00
parent 480a5ab921
commit e0821d6302

View File

@@ -86,7 +86,7 @@ class InventoryGridOverlay extends Overlay
final Point mousePoint = new Point(mouse.getX(), mouse.getY());
final int if1DraggedItemIndex = client.getIf1DraggedItemIndex();
final WidgetItem draggedItem = inventoryWidget.getWidgetItem(if1DraggedItemIndex);
final Rectangle initialBounds = draggedItem.getCanvasBounds();
final Rectangle initialBounds = draggedItem.getCanvasBounds(false);
if (initialMousePoint == null)
{