Skip to content

Commit

Permalink
fsu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Jan 15, 2025
1 parent f2e03f4 commit 8e8572d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ private static InventoryMenu manip(InventoryMenu inventoryMenu) {
extension.lt$setVisualY(0);
} else {
// yes, this is painful
if (InventoryMenu.INV_SLOT_START <= i) {
if (i >= InventoryMenu.ARMOR_SLOT_START && i < InventoryMenu.ARMOR_SLOT_END) {
extension.lt$setVisualX(126/2f);
int fsu = i - InventoryMenu.ARMOR_SLOT_START;
extension.lt$setVisualY(14.5f + fsu * 21);
} else if (InventoryMenu.INV_SLOT_START <= i) {
extension.lt$setVisualX(slot.x * 18.66667f / 16 + 3.66667f);
extension.lt$setVisualY(slot.y * 18.66667f / 16 + 3.66667f + 3.66667f + 3.66667f + 3.66667f + (InventoryMenu.isHotbarSlot(i) ? 5.16667f : 3.33333f));
}
Expand Down

0 comments on commit 8e8572d

Please sign in to comment.