Added config for verbose logging )on by default, #41)
This commit is contained in:
parent
887cb3c8f1
commit
87d0c8b07e
7 changed files with 28 additions and 12 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.betterx.worlds.together.world.event;
|
||||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.config.Configs;
|
||||
import org.betterx.worlds.together.WorldsTogether;
|
||||
import org.betterx.worlds.together.levelgen.WorldGenUtil;
|
||||
import org.betterx.worlds.together.mixin.common.RegistryOpsAccessor;
|
||||
|
@ -303,15 +304,17 @@ public class WorldBootstrap {
|
|||
entry.getValue()
|
||||
));
|
||||
|
||||
output += "\n - " + entry.getKey().location().toString() + ": " +
|
||||
"\n " + entry.getValue().generator().toString() + " " +
|
||||
entry.getValue()
|
||||
.generator()
|
||||
.getBiomeSource()
|
||||
.toString()
|
||||
.replace("\n", "\n ");
|
||||
if (Configs.MAIN_CONFIG.verboseLogging())
|
||||
output += "\n - " + entry.getKey().location().toString() + ": " +
|
||||
"\n " + entry.getValue().generator().toString() + " " +
|
||||
entry.getValue()
|
||||
.generator()
|
||||
.getBiomeSource()
|
||||
.toString()
|
||||
.replace("\n", "\n ");
|
||||
}
|
||||
BCLib.LOGGER.info(output);
|
||||
if (Configs.MAIN_CONFIG.verboseLogging())
|
||||
BCLib.LOGGER.info(output);
|
||||
SurfaceRuleUtil.injectSurfaceRulesToAllDimensions(worldGenSettings);
|
||||
|
||||
WorldEventsImpl.ON_FINALIZED_WORLD_LOAD.emit(e -> e.done(worldGenSettings));
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.betterx.worlds.together.worldPreset;
|
||||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.config.Configs;
|
||||
import org.betterx.worlds.together.WorldsTogether;
|
||||
import org.betterx.worlds.together.levelgen.WorldGenUtil;
|
||||
import org.betterx.worlds.together.mixin.common.WorldPresetAccessor;
|
||||
|
@ -105,7 +106,7 @@ public class TogetherWorldPreset extends WorldPreset {
|
|||
|
||||
public static @NotNull Map<ResourceKey<LevelStem>, ChunkGenerator> loadWorldDimensions() {
|
||||
final RegistryAccess registryAccess = WorldBootstrap.getLastRegistryAccessOrElseBuiltin();
|
||||
if (registryAccess == BuiltinRegistries.ACCESS) {
|
||||
if (registryAccess == BuiltinRegistries.ACCESS && Configs.MAIN_CONFIG.verboseLogging()) {
|
||||
BCLib.LOGGER.info("Loading from builtin Registry");
|
||||
}
|
||||
final RegistryOps<Tag> registryOps = RegistryOps.create(NbtOps.INSTANCE, registryAccess);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue