Valkyrien Skies (Forge/Fabric)

Valkyrien Skies (Forge/Fabric)

3M Downloads

Shuts Down Game While Placing Double Slabs

SlavaTalanov opened this issue ยท 5 comments

commented

Mod Name

Double Slabs (CJMinecraft01)

This issue occurs when only Valkyrien Skies, addons, and the mod I have specified are installed and no other mods

  • I have tested this issue and it occurs with only Valkyrien Skies, addons, and the mod I have specified

Minecraft Version

1.19

Mod Loader

Forge

Issue description

VS causes the game to crash when you attempt to place specific slabs with Double Slabs installed. Bizarrely, only some slabs produce the issue.

Issue reproduction

On the latest Forge for 1.19.2, boot up with VS, Kotlin, and Double Slabs (1192-2.2.0.beta3, 3.12.0-all, 1.19-6.1.0).
Load up a world, and get specifically the Cut Copper Slab. There may be other problematic slabs but I haven't tested, but many โ€“ like the oxidized variant of the same block โ€“ do not produce the issue.
Attempt to place two on top of each other โ€“ not even in the vertical configuration, regular slab placement, such that they make a full block.

Message:
The game crashed whilst exception in server tick loop
Error:
org.valkyrienskies.core.impl.util.assertions.stages.Constr
Constraints failed. Stages since last reset: [PRE_TICK,
GET_LAST_TICK_CHANGES, UPDATE_CHUNKS, UPDATE_CHUNKS,
UPDATE_CHUNKS, POST_TICK_START, POST_TICK_GENERATED,
POST_TICK_FINISH, GET_CURRENT_TICK_CHANGES,
CLEAR FOR RESET UPDATE DIMENSIONS, UPDATE PLAYERS ]

Exit: 255

Logs

debug.log
latest.log

commented

Does this happen on 1.18? If not, then it already got fixed on 1.18, and 1.19 just hasn't gotten updated yet

commented

No, it breaks all the same on 1.18.2. Same message.

commented

This issue is caused because double slabs creates a "world wrapper" object that extends ServerLevel, causing VS to think that a new dimension was added. Since this dimension isn't added during the right stage, the game crashes. We should probably detect new worlds in a different way.

https://github.com/CJMinecraft01/DoubleSlabs/blob/4894063b9ac170145f64eba0de071ff454484a39/src/main/java/cjminecraft/doubleslabs/api/BlockInfo.java#L112C18-L112C27

commented
commented

This issue also happens with Smaller Units when placing a Unit Space by what seems to be the same reasons. (tested in 1.19.2 with just the needed mods, same crash)