Skip to content

Bug: 15-second server freeze on BetterStronghold generation End Expansion 1.2 #22

@Userrr67

Description

@Userrr67

Every time a BetterStronghold spawns, the server main thread freezes for 15,120ms, disconnecting players and risking chunk corruption.

Cause: ModStructureTemplate is being instantiated inside piece generation methods (generateHall, generateCross, generateHallLevel) instead of cached at startup. Each piece creation runs the full Forge CompoundDataFixer chain from scratch. Since the structure generates recursively with many pieces, this compounds into a ~15s freeze. LoliASM v5.31 is present and softening the NBT/ResourceLocation spam but cannot prevent the freeze at this scale.

Fix: Load templates once at init, reuse them, don't call new ModStructureTemplate(...) inside generation methods.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions