Fix Permutations for Information Handler (#804)

This commit is contained in:
slprime authored and GitHub committed 2025-11-08 09:32:47 +02:00
1 parent 7f555f7a7f
commit bcef287e71
4 files changed
+21 -20

No files matched your search

@@ -134,13 +134,6 @@ public class GuiRecipeCatalyst extends ScrollContainer {
int index = 0;
for (PositionedStack pStack : this.items) {
if (pStack.items.length > 1) {
final int stackIndex = (pStack.items.length + pStack.getPermutationIndex(pStack.item) + 1)
% pStack.items.length;
pStack.setPermutationToRender(stackIndex);
}
pStack.relx = visibleWidth - SLOT_SIZE - (index / rows) * SLOT_SIZE;
pStack.rely = (index % rows) * SLOT_SIZE;
index++;