Disabled extra vanilla override code

This commit is contained in:
Frank 2022-07-09 23:37:57 +02:00
parent 4732aa7ff8
commit 9f36264090

View file

@ -246,18 +246,18 @@ public class WorldGenUtil {
ChunkGenerator referenceGenerator = dimensions.get(key);
if (referenceGenerator instanceof EnforceableChunkGenerator enforcer) {
// probably not a datapack, so we need to check what other mods would have
// added to the vanilla settings
if (loadedStem.generator() instanceof EnforceableChunkGenerator) {
// This list contains the vanilla default level stem (only available if a new world is loaded) as well as
// The currently loaded stem
var vanillaDimensionMap = WorldGenUtil.getDimensionsWithModData(net.minecraft.world.level.levelgen.presets.WorldPresets.NORMAL);
LevelStem vanillaDefaultStem = vanillaDimensionMap.get(key);
if (vanillaDefaultStem != null) {
loadedStem = vanillaDefaultStem;
}
}
// // probably not a datapack, so we need to check what other mods would have
// // added to the vanilla settings
// if (loadedStem.generator() instanceof EnforceableChunkGenerator) {
// // This list contains the vanilla default level stem (only available if a new world is loaded) as well as
// // The currently loaded stem
// var vanillaDimensionMap = WorldGenUtil.getDimensionsWithModData(net.minecraft.world.level.levelgen.presets.WorldPresets.NORMAL);
//
// LevelStem vanillaDefaultStem = vanillaDimensionMap.get(key);
// if (vanillaDefaultStem != null) {
// loadedStem = vanillaDefaultStem;
// }
// }
// now compare the reference world settings (the ones that were created when the world was