Fix upgrading worlds with custom generators

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-11-23 20:00:10 +11:00
parent 731158e521
commit c8802f0a64

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);
}
}