Skip to content

Commit

Permalink
True
Browse files Browse the repository at this point in the history
  • Loading branch information
machiecodes committed Jan 10, 2025
1 parent 182dd52 commit 1d2b400
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,9 @@ public void render(HudRenderer renderer) {
double armorY;
int emptySlots = 0;

List<ItemStack> armor = List.of(
getItem(0),
getItem(1),
getItem(2),
getItem(3)
);
if (flipOrder.get()) armor = armor.reversed();
ItemStack[] armor = flipOrder.get() ?
new ItemStack[]{getItem(3), getItem(2), getItem(1), getItem(0)} :
new ItemStack[]{getItem(0), getItem(1), getItem(2), getItem(3)};

for (ItemStack stack : armor) {
if (stack.isEmpty()) emptySlots++;
Expand All @@ -154,7 +150,7 @@ public void render(HudRenderer renderer) {
}

for (int position = 0; position < 4; position++) {
ItemStack itemStack = armor.get(position);
ItemStack itemStack = armor[position];

if (orientation.get() == Orientation.Vertical) {
armorX = x;
Expand Down

0 comments on commit 1d2b400

Please sign in to comment.