Fabric API

Fabric API

108M Downloads

crash on join world

TheNimbleNinja opened this issue ยท 3 comments

commented

This hard to read error message says it can't save your world because you have a StructureFeature without a StructureConfig.

The only obvious modded behaviour in your stacktrace is this:

at me.shedaniel.someforgepatchesported.LenientUnboundedMapCodec.encode(LenientUnboundedMapCodec.java:69)
at me.shedaniel.someforgepatchesported.LenientUnboundedMapCodec.encode(LenientUnboundedMapCodec.java:18)

a port of a forge patch for when modded dimensions get removed.

It is more likely that you or one of your mods are not creating the structures correctly?
e.g. the mod is not providing a default config and one is not specified explicitly.

Some comments from yarn that might be relevant:
https://github.com/FabricMC/yarn/blob/1.17/mappings/net/minecraft/world/gen/chunk/StructuresConfig.mapping

The FabricStructureBuilder in the fabric api for creating these programmatically, requires the default config to be non-null.

Objects.requireNonNull(defaultConfig, "Structure \"" + id + "\" is missing a default config");

So I would guess the feature is from a json file?

commented

There is also this recent fix: #1495

commented

If it happens again, please ask in #player-support on Discord.