Question Issue with Applying DevBundle Patches in Plugin Development

WildCarz

New member
Apr 18, 2024
1
0
1
Hello, I have an issue when trying to use a fork of Paper in one of my plugins. I made the fork using this repository https://github.com/PaperMC/paperweight-examples, updated all necessary versions (gradle, etc), and published the devBundle to my local maven using "./gradlew publishDevBundlePublicationToMavenLocal -PpublishDevBundle". The problem is that when I try to use this devBundle in my other plugin, it gives an error while applying the patches (Failed to apply dev bundle patches. See the log file at...). The log shows that there are 3 classes causing errors, but none of those were modified.

[DEBUG] Patching: net/minecraft/ChatFormatting.java [WARN] Hunk 0: FAILURE: @@ -1,157 +1,169 @@ [DEBUG] Patching: net/minecraft/server/level/ChunkMap.java [WARN] Hunk 0: FAILURE: @@ -1,1387 +1,1504 @@ [DEBUG] Patching: net/minecraft/server/network/LegacyQueryHandler.java [WARN] Hunk 0: FAILURE: @@ -1,123 +1,266 @@

Any idea why this might be happening? I've tried deleting the Gradle cache, generating the devBundle again, and still it persists.

build.gradle.kts: https://paste.gg/p/anonymous/714a8622c38f484f9917cd6af8e47a16
build.gradle.kts (paper fork): https://paste.gg/p/anonymous/0197bd8abb554c32973f46f454b5928f
log file: https://paste.gg/p/anonymous/36c2787604614ec4accc22dae5c63b06
 
Last edited: