Add log config and fix warnings
- Add log config to filter Hypixel scoreboard and sound errors - Fix devauth warning and shadowImpl type warning
This commit is contained in:
parent
dc7454d548
commit
b53f3326ea
2 changed files with 8 additions and 2 deletions
|
@ -16,6 +16,7 @@ java {
|
||||||
|
|
||||||
// Minecraft configuration:
|
// Minecraft configuration:
|
||||||
loom {
|
loom {
|
||||||
|
log4jConfigs.from(file("log4j2.xml"))
|
||||||
launchConfigs {
|
launchConfigs {
|
||||||
"client" {
|
"client" {
|
||||||
// If you don't want mixins, remove these lines
|
// 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")
|
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)
|
configurations.implementation.get().extendsFrom(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +66,7 @@ dependencies {
|
||||||
annotationProcessor("org.spongepowered:mixin:0.8.4-SNAPSHOT")
|
annotationProcessor("org.spongepowered:mixin:0.8.4-SNAPSHOT")
|
||||||
|
|
||||||
// If you don't want to log in with your real minecraft account, remove this line
|
// 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")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
5
log4j2.xml
Normal file
5
log4j2.xml
Normal file
|
@ -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>
|
Loading…
Add table
Reference in a new issue