Skip to content

Recursive update crash with Twilight Forest ForceFieldBlock on chunk load #1087

@Kotemorte

Description

@Kotemorte

Context

Describe the bug
Game crashes with IllegalStateException: Recursive update whenever
loading chunks in the Twilight Forest dimension that contain ForceField blocks.
This happens consistently while walking through the dimension.

To Reproduce

  1. Install Twilight Forest alongside Sable
  2. Enter the Twilight Forest dimension
  3. Walk around to load new chunks
  4. Game crashes immediately on chunk load

Crash report
crash-2026-06-01_13.09.25-server.txt

Relevant mods

  • sable-neoforge-1.21.1-1.2.2
  • twilightforest-1.21.1-4.8.3345
  • Modpack: All of Create Aeronautics v1.3 (NeoForge 21.1.228, MC 1.21.1)

Root cause (as I understand it)
Sable's RapierVoxelColliderBakery.getPhysicsDataForBlock uses
computeIfAbsent on a ConcurrentHashMap. During chunk post-processing,
ForceFieldBlock.getShape calls back into LevelAccelerator.getBlockState,
which triggers another getPhysicsDataForBlock call for the same key —
causing a recursive update exception.

Crash Report

https://github.com/user-attachments/files/28457285/crash-2026-06-01_13.09.25-server.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: crashSomething crashes my game

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions