diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-25 20:02:45 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-25 20:02:45 +0100 |
commit | 1e3071f441685ae0142ba989b181d26a7b3b60ab (patch) | |
tree | 34cbe692738f8995f84a9ffc544979a6208b7e48 /mod | |
parent | d6a71bcfa4b1e1ea4d2864fae3c16791b63794ee (diff) | |
download | LocalTransactionLedger-1e3071f441685ae0142ba989b181d26a7b3b60ab.tar.gz LocalTransactionLedger-1e3071f441685ae0142ba989b181d26a7b3b60ab.tar.bz2 LocalTransactionLedger-1e3071f441685ae0142ba989b181d26a7b3b60ab.zip |
Diffstat (limited to 'mod')
-rw-r--r-- | mod/log4j2.xml | 6 | ||||
-rw-r--r-- | mod/src/main/java/moe/nea/ledger/init/AutoDiscoveryMixinPlugin.java | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mod/log4j2.xml b/mod/log4j2.xml index af9b1b7..ff7a816 100644 --- a/mod/log4j2.xml +++ b/mod/log4j2.xml @@ -1,5 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <!-- Filter out Hypixel scoreboard and sound errors --> - <RegexFilter regex="Error executing task.*|Unable to play unknown soundEvent.*" onMatch="DENY" onMismatch="NEUTRAL"/> + <RegexFilter regex="Unable to play unknown soundEvent.*" onMatch="DENY" onMismatch="NEUTRAL"/> + <RegexFilter regex="Zip file .* failed to read properly, it will be ignored.*" onMatch="DENY" onMismatch="NEUTRAL"/> + <RegexFilter regex="There was a problem reading the entry META-INF/versions/9/.* in the jar .* - probably a corrupt zip" onMatch="DENY" onMismatch="NEUTRAL"/> + <RegexFilter regex="Unable to read a class file correctly" onMatch="DENY" onMismatch="NEUTRAL"/> + <RegexFilter regex="Error executing task" onMatch="DENY" onMismatch="NEUTRAL"/> </Configuration>
\ No newline at end of file diff --git a/mod/src/main/java/moe/nea/ledger/init/AutoDiscoveryMixinPlugin.java b/mod/src/main/java/moe/nea/ledger/init/AutoDiscoveryMixinPlugin.java index 56841b5..64fa6c2 100644 --- a/mod/src/main/java/moe/nea/ledger/init/AutoDiscoveryMixinPlugin.java +++ b/mod/src/main/java/moe/nea/ledger/init/AutoDiscoveryMixinPlugin.java @@ -96,6 +96,8 @@ public class AutoDiscoveryMixinPlugin implements IMixinConfigPlugin { * @param className the name or path of a class to be registered as a mixin. */ public void tryAddMixinClass(String className) { + if (!className.endsWith(".class")) return; + if (className.indexOf('$') >= 0) return; String norm = (className.endsWith(".class") ? className.substring(0, className.length() - ".class".length()) : className) .replace("\\", "/") .replace("/", "."); |