-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
Minecraft Development for IntelliJ plugin version
1.8.11-2025.3
IntelliJ version
2025.3.1
Operating System
Linux
Target platform
Mixins
Description of the bug
The following mixin causes the IDE to freeze when navigating to the target:
@Mixin(ChunkMap.class)
public abstract class ChunkMapMixin {
@Shadow
@Final
ServerLevel level;
/**
* Injection is inside of tryUnloadChunk.
* We inject just after "setLoadedToWorld" is made false, since here the WorldChunk is guaranteed to be unloaded.
*/
@Inject(method = "lambda$scheduleUnload$0", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/level/ChunkMap;save(Lnet/minecraft/world/level/chunk/ChunkAccess;)Z"))
private void onChunkUnload(ChunkHolder chunkHolder, CompletableFuture<?> completableFuture, long l, CallbackInfo ci, @Local ChunkAccess chunk) {
if (chunk instanceof LevelChunk levelChunk) {
ServerChunkEvents.CHUNK_UNLOAD.invoker().onChunkUnload(this.level, levelChunk);
}
}
}