mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
correct key used to register world type
This commit is contained in:
@@ -24,6 +24,7 @@ import net.minecraft.world.gen.chunk.NoiseChunkGenerator;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
@@ -68,7 +69,8 @@ public class LifecycleUtil {
|
|||||||
.getPlatform()
|
.getPlatform()
|
||||||
.getRawConfigRegistry()
|
.getRawConfigRegistry()
|
||||||
.forEach((id, pack) -> {
|
.forEach((id, pack) -> {
|
||||||
Identifier generatorID = Identifier.of("terra", pack.getID() + "/" + pack.getNamespace());
|
Identifier generatorID = Identifier.of("terra", pack.getID().toLowerCase(Locale.ROOT) + "/" + pack.getNamespace().toLowerCase(
|
||||||
|
Locale.ROOT));
|
||||||
|
|
||||||
TerraBiomeSource biomeSource = new TerraBiomeSource(biomeRegistry, pack);
|
TerraBiomeSource biomeSource = new TerraBiomeSource(biomeRegistry, pack);
|
||||||
ChunkGenerator generator = new FabricChunkGeneratorWrapper(structureSetRegistry, biomeSource, pack, overworld);
|
ChunkGenerator generator = new FabricChunkGeneratorWrapper(structureSetRegistry, biomeSource, pack, overworld);
|
||||||
@@ -82,7 +84,7 @@ public class LifecycleUtil {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
BuiltinRegistries.add(BuiltinRegistries.WORLD_PRESET, generatorID, preset);
|
BuiltinRegistries.add(BuiltinRegistries.WORLD_PRESET, generatorID, preset);
|
||||||
LOGGER.info("Registered world type \"{}\"", id);
|
LOGGER.info("Registered world type \"{}\"", generatorID);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user