9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-23 08:59:23 +00:00

Should be inverted

This commit is contained in:
Dreeam
2025-06-06 06:09:41 +08:00
parent 4ebb4da022
commit 192608bbc4
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ Subject: [PATCH] do not log invalid flatten text component parse
diff --git a/ca/spottedleaf/dataconverter/minecraft/versions/V4290.java b/ca/spottedleaf/dataconverter/minecraft/versions/V4290.java
index 4197a5e89aec77f2893f0f118a927b96d5377ec1..7a9bf426550a0c424f3ca09fb962aac670bc0921 100644
index 4197a5e89aec77f2893f0f118a927b96d5377ec1..de99a05bbe3e8dac2d6307eb53d954d77904a0c4 100644
--- a/ca/spottedleaf/dataconverter/minecraft/versions/V4290.java
+++ b/ca/spottedleaf/dataconverter/minecraft/versions/V4290.java
@@ -191,7 +191,7 @@ public final class V4290 {
@@ -13,7 +13,7 @@ index 4197a5e89aec77f2893f0f118a927b96d5377ec1..7a9bf426550a0c424f3ca09fb962aac6
}
} catch (final JsonParseException ex) {
- LOGGER.error("Failed to convert json to nbt: " + unparsedJson, ex);
+ if (!org.galemc.gale.configuration.GaleGlobalConfiguration.get().logToConsole.invalidLegacyTextComponent) LOGGER.error("Failed to convert json to nbt: " + unparsedJson, ex); // Leaf - do not log invalid flatten text component parse
+ if (org.galemc.gale.configuration.GaleGlobalConfiguration.get().logToConsole.invalidLegacyTextComponent) LOGGER.error("Failed to convert json to nbt: " + unparsedJson, ex); // Leaf - do not log invalid flatten text component parse
}
return null;

View File

@@ -92,7 +92,7 @@ public class GaleGlobalConfiguration extends ConfigurationPart {
public boolean legacyMaterialInitialization = false; // Gale - Purpur - do not log legacy Material initialization
public boolean nullIdDisconnections = true; // Gale - Pufferfish - do not log disconnections with null id
public boolean playerLoginLocations = true; // Gale - JettPack - make logging login location configurable
public boolean invalidLegacyTextComponent = false; // Leaf - do not log invalid flatten text component parse
public boolean invalidLegacyTextComponent = true; // Leaf - do not log invalid flatten text component parse
public Chat chat;