Skip to content

Commit d4d3444

Browse files
committed
Fixup! Fix BlockRenderManager using the wrong IDs
1 parent 87d7df1 commit d4d3444

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

loader/src/main/java/com/fox2code/foxloader/client/BlockRenderManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public static void registerBlockRender(BlockRender blockRender) {
4444
if (blockRender.assignedID != -1) {
4545
return;
4646
}
47-
int newAssignedID = nextID++;
48-
if (newAssignedID >= FL_MAX_ID) {
47+
int newAssignedIndex = nextID++;
48+
if (newAssignedIndex >= FL_MAX_RENDER_TYPES) {
4949
throw new IllegalStateException("Max number of renders registered!");
5050
}
51-
blockRenders[newAssignedID] = blockRender;
52-
blockRender.assignedID = newAssignedID + FL_INITIAL_ID;
51+
blockRenders[newAssignedIndex] = blockRender;
52+
blockRender.assignedID = newAssignedIndex + FL_INITIAL_ID;
5353
}
5454
}
5555

0 commit comments

Comments
 (0)