Skip to content

Commit

Permalink
Fix inventoryTick patch to also count empty slots (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
GizmoTheMoonPig authored Feb 4, 2024
1 parent 3358da9 commit b004e39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
+ // Neo: Fix the slot param to be the global index instead of the per-compartment index.
+ // Neo: Fix the selected param to only be true for hotbar slots.
+ nonnulllist.get(i).inventoryTick(this.player.level(), this.player, slot, this.selected == slot);
+ slot++;
}
+ slot++;
}
}
+ armor.forEach(e -> e.onArmorTick(player.level(), player));
Expand Down

0 comments on commit b004e39

Please sign in to comment.