Fix upgrading worlds with custom generators
This commit is contained in:
parent
1c82731ddb
commit
dd02403be2
@ -306,6 +306,6 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Codec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec() {
|
protected Codec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec() {
|
||||||
throw new UnsupportedOperationException("Cannot serialize CustomChunkGenerator");
|
return Codec.unit(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user