mixins: correct widget item bounds location for if1

This commit is contained in:
Ron Young
2019-05-23 11:34:00 -05:00
committed by Adam
parent f3e910984e
commit 373fba0b5a

View File

@@ -299,7 +299,7 @@ public abstract class RSWidgetMixin implements RSWidget
int itemX = widgetCanvasLocation.getX() + ((ITEM_SLOT_SIZE + xPitch) * col);
int itemY = widgetCanvasLocation.getY() + ((ITEM_SLOT_SIZE + yPitch) * row);
Rectangle bounds = new Rectangle(itemX - 1, itemY - 1, ITEM_SLOT_SIZE, ITEM_SLOT_SIZE);
Rectangle bounds = new Rectangle(itemX, itemY, ITEM_SLOT_SIZE, ITEM_SLOT_SIZE);
return new WidgetItem(itemId - 1, itemQuantity, index, bounds, this);
}