diff options
author | ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> | 2022-09-02 03:35:01 -0400 |
---|---|---|
committer | ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> | 2022-09-02 03:35:01 -0400 |
commit | b53f3326ea3c986a10232e678e07c74fdaad72ac (patch) | |
tree | cc0e69227d63ffb75c252e5ce40efc08a168d8f1 | |
parent | dc7454d548dea07c5f11a379d7cc669ce483705d (diff) | |
download | forge1.8.9template-b53f3326ea3c986a10232e678e07c74fdaad72ac.tar.gz forge1.8.9template-b53f3326ea3c986a10232e678e07c74fdaad72ac.tar.bz2 forge1.8.9template-b53f3326ea3c986a10232e678e07c74fdaad72ac.zip |
Add log config and fix warnings
- Add log config to filter Hypixel scoreboard and sound errors
- Fix devauth warning and shadowImpl type warning
-rw-r--r-- | build.gradle.kts | 5 | ||||
-rw-r--r-- | log4j2.xml | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 5021919..c63956b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,6 +16,7 @@ java { // Minecraft configuration: loom { + log4jConfigs.from(file("log4j2.xml")) launchConfigs { "client" { // If you don't want mixins, remove these lines @@ -49,7 +50,7 @@ repositories { maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1") } -val shadowImpl by configurations.creating { +val shadowImpl: Configuration by configurations.creating { configurations.implementation.get().extendsFrom(this) } @@ -65,7 +66,7 @@ dependencies { annotationProcessor("org.spongepowered:mixin:0.8.4-SNAPSHOT") // If you don't want to log in with your real minecraft account, remove this line - modRuntimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0") + runtimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0") } diff --git a/log4j2.xml b/log4j2.xml new file mode 100644 index 0000000..af9b1b7 --- /dev/null +++ b/log4j2.xml @@ -0,0 +1,5 @@ +<?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"/> +</Configuration>
\ No newline at end of file |