Skip to content

Commit

Permalink
Fix: don't relocate Netty components that are not shaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Jul 22, 2023
1 parent 9f7aa50 commit 1d8ce1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ configurations {
dependencies {
minecraft "net.minecraftforge:forge:1.20.1-47.1.3"

shadow(minecraftLibrary(fg.deobf('io.netty:netty-codec-http:4.1.77.Final'))) {
shadow(implementation('io.netty:netty-codec-http:4.1.82.Final')) {
transitive = false
}

Expand All @@ -89,7 +89,9 @@ tasks.named('shadowJar', Jar).configure {
configurations = [project.configurations.shadow]
finalizedBy('reobfShadowJar')

relocate 'io.netty', 'cpw.mods.forge.serverpacklocator.repack.io.netty'
['http', 'rtps', 'spdy'].forEach {
relocate "io.netty.codec.$it", "cpw.mods.forge.serverpacklocator.repack.io.netty.codec.$it"
}
}

reobf {
Expand Down

0 comments on commit 1d8ce1e

Please sign in to comment.