Chunk Loaders

Chunk Loaders

7M Downloads

[Crash] Tried to enter the world

DrSigma4164 opened this issue ยท 4 comments

commented

Version Info

  • Minecraft, 1.16.5
  • Chunk Loaders, 1.1.11

**Are you using OptiFine?: No

Steps to Reproduce
1)Tried to enter the world

Crash report (~/logs/latest.log)
crash - https://gist.github.com/4a0d1c313b69d54455a3cbfb153c99f2.git
latest - https://gist.github.com/e3c5f489950d5608188b58f6c2b5e830.git

commented

The crash appears to be caused by Applied Energistics.

commented

I was told as follows:

It's incompatible.
The chunkloader mod is loading the chunk before the world has completed loading.
Forge has it's own chunkloading API, which is compatible with AE2.
Sorry, but we're not going to implement specific compatibility with this mod in 1.16.

Could you, if ae2 is installed in the modpack, use the API mentioned above?

commented

Chunk Loaders is already using the API's provided.

The problem seems to come from this line:

Arrays.stream(blocks.getAsLongArray()).mapToObj(BlockPos::of).forEach(pos -> this.add(chunk, pos));

The line is part of loading code for Chunk Loaders' world capability. During loading, the ChunkLoaderUtil$ChunkTracker#add method ends up calling World#setChunkForced which also causes the chunk to load.

The issue seems to be a rare occurrence as it hasn't been reported before. I can also not reproduce the issue with just Chunk Loaders and Applied Energistics 2 installed.

I am working on redoing pretty much all of Chunk Loaders. I will not be fixing it right now, as this appears to be an uncommon issue and the code for it will be redone anyways.

commented

The problem is fixed now in version 1.2.0 of Chunk Loaders.
Thank you for reporting the issue!