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

Commit

Permalink
Disable (temporarily?) the sectionArray mixin because it is currently…
Browse files Browse the repository at this point in the history
… broken

Signed-off-by: MeeniMc <68366846+MeeniMc@users.noreply.github.com>
  • Loading branch information
MeeniMc committed Nov 21, 2021
1 parent d24632e commit f7cf8d4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ private void reinit(World world, ChunkPos pos,

// Upgrading a ProtoChunk to a WorldChunk might result in empty sections being copied over
// These simply waste memory, and the WorldChunk will return air blocks for any absent section without issue.

/* DISABLED because many places in WorldChunk do sectionArray[i].empty() without testing for null first
for (int i = 0; i < sectionArray.length; i++) {
if (sectionArray[i].isEmpty()) {
sectionArray[i] = null;
}
}
*/
}


Expand Down

0 comments on commit f7cf8d4

Please sign in to comment.