Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit e5c1e8f

Browse files
committed
Disable (temporarily?) the sectionArray mixin because it is currently broken
Signed-off-by: MeeniMc <[email protected]>
1 parent 97c2207 commit e5c1e8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/main/java/me/jellysquid/mods/hydrogen/mixin/chunk/MixinWorldChunk.java

+3
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ private void reinit(World world, ChunkPos pos,
4444

4545
// Upgrading a ProtoChunk to a WorldChunk might result in empty sections being copied over
4646
// These simply waste memory, and the WorldChunk will return air blocks for any absent section without issue.
47+
48+
/* DISABLED because many places in WorldChunk do sectionArray[i].empty() without testing for null first
4749
for (int i = 0; i < sectionArray.length; i++) {
4850
if (sectionArray[i].isEmpty()) {
4951
sectionArray[i] = null;
5052
}
5153
}
54+
*/
5255
}
5356
}

0 commit comments

Comments
 (0)