Skip to content

Commit

Permalink
Bump version, fix last pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Dec 7, 2023
1 parent 686f84d commit f0ff603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -107,12 +108,11 @@ public VoidChunkGenerator(Registry<Biome> biomeRegistry, RegistryKey<Biome> 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<? extends ChunkGenerator> getCodec() {
Expand Down

0 comments on commit f0ff603

Please sign in to comment.