Skip to content

Commit

Permalink
Reverse CB package relocation mappings
Browse files Browse the repository at this point in the history
TODO: Update jar tasks to use relocatedShadowJar archive
  • Loading branch information
kennytv committed Sep 2, 2023
1 parent 0d3d960 commit ce958a5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ abstract class GenerateRelocatedReobfMappings : JavaLauncherTask() {
return
}
if (currentClass.name().startsWith(PREFIX) && !currentClass.name().startsWith(MAIN)) {
// For now, keep relocating CraftBukkit at runtime to avoid breaking plugins parsing the package name
// Instead, map plugins compiling against non-relocated CraftBukkit to the relocated package
registry.submitChange(
GenerateReobfMappings.AddClassMappingChange(
currentClass.name(),
"$relocateTo/${currentClass.name().substring(PREFIX.length)}"
"$relocateTo/${currentClass.name().substring(PREFIX.length)}",
currentClass.name()
)
)
}
Expand Down

0 comments on commit ce958a5

Please sign in to comment.