diff --git a/gradle.properties b/gradle.properties index d78fbdf..4a5a17a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.20.4+build.1 loader_version=0.15.0 # Mod Properties -mod_version=0.4.11 +mod_version=0.5.0 maven_group=xyz.nucleoid archives_base_name=fantasy diff --git a/src/main/java/xyz/nucleoid/fantasy/util/VoidChunkGenerator.java b/src/main/java/xyz/nucleoid/fantasy/util/VoidChunkGenerator.java index 6f39624..fe916ad 100644 --- a/src/main/java/xyz/nucleoid/fantasy/util/VoidChunkGenerator.java +++ b/src/main/java/xyz/nucleoid/fantasy/util/VoidChunkGenerator.java @@ -12,6 +12,7 @@ import net.minecraft.server.MinecraftServer; import net.minecraft.structure.StructureSet; import net.minecraft.structure.StructureTemplateManager; +import net.minecraft.util.Identifier; import net.minecraft.util.collection.Pool; import net.minecraft.util.dynamic.CodecHolder; import net.minecraft.util.math.BlockPos; @@ -107,12 +108,11 @@ public VoidChunkGenerator(Registry biomeRegistry, RegistryKey biom // Create an empty (void) world! public VoidChunkGenerator(MinecraftServer server) { - this(RegistryEntry.of(server.getRegistryManager().get(RegistryKeys.BIOME).getEntry(0).get())); + this(server.getRegistryManager().get(RegistryKeys.BIOME), BiomeKeys.THE_VOID); } // Create a world with a given Biome (as an ID) public VoidChunkGenerator(MinecraftServer server, Identifier biome) { - this(RegistryEntry.of(server.getRegistryManager().get(RegistryKeys.BIOME).get(biome))); - + this(server.getRegistryManager().get(RegistryKeys.BIOME), RegistryKey.of(RegistryKeys.BIOME, biome)); } @Override protected Codec getCodec() {