Fix upgrading worlds with custom generators

This commit is contained in:
md_5 2021-11-23 20:00:10 +11:00
parent 1c82731ddb
commit dd02403be2
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -306,6 +306,6 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
@Override
protected Codec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec() {
throw new UnsupportedOperationException("Cannot serialize CustomChunkGenerator");
return Codec.unit(null);
}
}