Logger settings (suppressing pointless logs)

This commit is contained in:
William Blake Galbreath
2025-01-05 12:37:32 -08:00
committed by granny
parent 7d3e69b342
commit 187613f961
6 changed files with 51 additions and 74 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/stats/ServerRecipeBook.java
+++ b/net/minecraft/stats/ServerRecipeBook.java
@@ -138,6 +_,7 @@
try {
ResourceKey<Recipe<?>> resourceKey = ResourceKey.create(Registries.RECIPE, ResourceLocation.parse(string));
if (!isRecognized.test(resourceKey)) {
+ if (!org.purpurmc.purpur.PurpurConfig.loggerSuppressUnrecognizedRecipeErrors) // Purpur - Logger settings (suppressing pointless logs)
LOGGER.error("Tried to load unrecognized recipe: {} removed now.", resourceKey);
} else {
output.accept(resourceKey);