diff options
author | Nassim Jahnke <[email protected]> | 2024-07-19 13:08:08 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-19 13:08:08 +0200 |
commit | 75af62b298eb70f535486df3343a1a333a60a002 (patch) | |
tree | 1571aa3ade589036a36df4570cbe4f6ac430b93c /patches/server/0020-Plugin-remapping.patch | |
parent | 2a392767942799bc93a70a8698a0ef4ca7b8b6f9 (diff) | |
download | Paper-75af62b298eb70f535486df3343a1a333a60a002.tar.gz Paper-75af62b298eb70f535486df3343a1a333a60a002.zip |
Split rewriting flag into `paper.disableOldApiSupport` and `paper.disablePluginRemapping` (#11108)
Diffstat (limited to 'patches/server/0020-Plugin-remapping.patch')
-rw-r--r-- | patches/server/0020-Plugin-remapping.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0020-Plugin-remapping.patch b/patches/server/0020-Plugin-remapping.patch index 995291305a..3d9e42e444 100644 --- a/patches/server/0020-Plugin-remapping.patch +++ b/patches/server/0020-Plugin-remapping.patch @@ -66,7 +66,7 @@ index a2bb659ae3a502d4c181d1ccbd15eefc38e4823b..8350fc099b68918fb03a21b6a5047cee + mainClass.set(null as String?) +} diff --git a/src/main/java/io/papermc/paper/plugin/PluginInitializerManager.java b/src/main/java/io/papermc/paper/plugin/PluginInitializerManager.java -index 708e5bb9bbf0476fcc2c4b92c6830b094703b43e..6f14cb9a73faa1d0ae2939d08809d9f6c2a99e1d 100644 +index 708e5bb9bbf0476fcc2c4b92c6830b094703b43e..49d8e207795997e5deaf830eb971067f84bfc791 100644 --- a/src/main/java/io/papermc/paper/plugin/PluginInitializerManager.java +++ b/src/main/java/io/papermc/paper/plugin/PluginInitializerManager.java @@ -6,10 +6,12 @@ import io.papermc.paper.plugin.entrypoint.Entrypoint; @@ -92,7 +92,7 @@ index 708e5bb9bbf0476fcc2c4b92c6830b094703b43e..6f14cb9a73faa1d0ae2939d08809d9f6 PluginInitializerManager(final Path pluginDirectory, final Path updateDirectory) { this.pluginDirectory = pluginDirectory; this.updateDirectory = updateDirectory; -+ this.pluginRemapper = Boolean.getBoolean("paper.disable-plugin-rewriting") ++ this.pluginRemapper = Boolean.getBoolean("paper.disablePluginRemapping") + ? null + : PluginRemapper.create(pluginDirectory); + LibraryLoader.REMAPPER = this.pluginRemapper == null ? Function.identity() : this.pluginRemapper::remapLibraries; |