mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
Only log warnings with debug logging
This commit is contained in:
+2
-1
@@ -50,6 +50,7 @@ public class ImageBiomeProviderAddon implements AddonInitializer {
|
|||||||
() -> new ImageProviderTemplate(event.getPack().getRegistry(Biome.class)));
|
() -> new ImageProviderTemplate(event.getPack().getRegistry(Biome.class)));
|
||||||
})
|
})
|
||||||
.failThrough();
|
.failThrough();
|
||||||
logger.warn("The biome-provider-image addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the biome-provider-image-v2 addon for future pack development instead.");
|
if(platform.getTerraConfig().isDebugLog())
|
||||||
|
logger.warn("The biome-provider-image addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the biome-provider-image-v2 addon for future pack development instead.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -90,6 +90,7 @@ public class BiomePipelineAddon implements AddonInitializer {
|
|||||||
event.getPack().applyLoader(BiomeDelegate.class, new BiomeDelegateLoader(biomeRegistry));
|
event.getPack().applyLoader(BiomeDelegate.class, new BiomeDelegateLoader(biomeRegistry));
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.warn("The biome-provider-pipeline addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the biome-provider-pipeline-v2 addon for future pack development instead.");
|
if(platform.getTerraConfig().isDebugLog())
|
||||||
|
logger.warn("The biome-provider-pipeline addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the biome-provider-pipeline-v2 addon for future pack development instead.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public class OreAddon implements AddonInitializer {
|
|||||||
.then(event -> event.getPack().registerConfigType(new OreConfigType(), addon.key("ORE"), 1))
|
.then(event -> event.getPack().registerConfigType(new OreConfigType(), addon.key("ORE"), 1))
|
||||||
.failThrough();
|
.failThrough();
|
||||||
|
|
||||||
logger.warn("The ore-config addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the ore-config-v2 addon for future pack development instead.");
|
if(platform.getTerraConfig().isDebugLog())
|
||||||
|
logger.warn("The ore-config addon is deprecated and scheduled for removal in Terra 7.0. It is recommended to use the ore-config-v2 addon for future pack development instead.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ public interface PluginConfig {
|
|||||||
|
|
||||||
boolean isDebugScript();
|
boolean isDebugScript();
|
||||||
|
|
||||||
|
boolean isDebugLog();
|
||||||
|
|
||||||
int getBiomeSearchResolution();
|
int getBiomeSearchResolution();
|
||||||
|
|
||||||
int getStructureCache();
|
int getStructureCache();
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ public class PluginConfigImpl implements ConfigTemplate, PluginConfig {
|
|||||||
@Default
|
@Default
|
||||||
private boolean debugScript = false;
|
private boolean debugScript = false;
|
||||||
|
|
||||||
|
@Value("debug.log")
|
||||||
|
@Default
|
||||||
|
private boolean debugLog = false;
|
||||||
|
|
||||||
@Value("biome-search-resolution")
|
@Value("biome-search-resolution")
|
||||||
@Default
|
@Default
|
||||||
private int biomeSearch = 4;
|
private int biomeSearch = 4;
|
||||||
@@ -91,6 +95,8 @@ public class PluginConfigImpl implements ConfigTemplate, PluginConfig {
|
|||||||
logger.info("Debug profiler enabled.");
|
logger.info("Debug profiler enabled.");
|
||||||
if(debugScript)
|
if(debugScript)
|
||||||
logger.info("Script debug blocks enabled.");
|
logger.info("Script debug blocks enabled.");
|
||||||
|
if(debugLog)
|
||||||
|
logger.info("Debug logging enabled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -113,6 +119,11 @@ public class PluginConfigImpl implements ConfigTemplate, PluginConfig {
|
|||||||
return debugScript;
|
return debugScript;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDebugLog() {
|
||||||
|
return debugLog;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getBiomeSearchResolution() {
|
public int getBiomeSearchResolution() {
|
||||||
return biomeSearch;
|
return biomeSearch;
|
||||||
|
|||||||
Reference in New Issue
Block a user