Skip to content

Add support for Bukkit/Paper 26.1.2#4259

Open
surfeur5 wants to merge 5 commits intowebbukkit:v3.0from
surfeur5:fix/bukkit-helper-261-2
Open

Add support for Bukkit/Paper 26.1.2#4259
surfeur5 wants to merge 5 commits intowebbukkit:v3.0from
surfeur5:fix/bukkit-helper-261-2

Conversation

@surfeur5
Copy link
Copy Markdown

@surfeur5 surfeur5 commented May 7, 2026

Add support for Bukkit/Paper 26.1.2

This PR adds compatibility support for Bukkit/Paper 26.1.2 by introducing a dedicated helper module and updating the build environment for newer Java class file support.

Included changes

  • Added new module:
    • bukkit-helper-261-2
  • Added automatic version detection and helper loading
  • Added chunk cache and NBT implementations for 26.1.2
  • Registered the new helper in Gradle and Spigot build configuration
  • Updated ASM dependencies from 9.5 to 9.8
    • fixes Unsupported class file major version 69 during shadowJar
  • Added Foojay Gradle toolchain resolver support

Testing

Successfully tested on:

  • Paper 26.1.2
  • Java 21

Build command used:

./gradlew setup build

Surfeur5 added 5 commits May 7, 2026 12:31
✨ feat(spigot/plugin.yml): Update api-version to '26.1.2' for Minecraft 1.21.2 support

➕ build(settings.gradle): Add bukkit-helper-261-2 module for Minecraft 1.21.2

➕ build(spigot/build.gradle): Add bukkit-helper-261-2 as dependency and include in shadow jar

✨ feat(spigot/Helper.java): Add support for Bukkit/Spigot 26.1.2 version detection and helper loading
⬆️ build(build.gradle): update ASM dependencies to version 9.8 for newer Java class file support
@jacob1
Copy link
Copy Markdown
Contributor

jacob1 commented May 7, 2026

The Java portion of this is a line-for-line copy of TwentyOneZ@eff762b . Did you copy it from there?

Have you tested this yourself? It was reported on Discord that TwentyOneZ's changes cause trees / plants to render in grayscale. There's a different fork out there that also adds 26.1.2 support and doesn't have the gray issue.

@surfeur5
Copy link
Copy Markdown
Author

surfeur5 commented May 7, 2026

image

No, I didn’t copy it from TwentyOneZ’s fork.
The changes required for 26.1.2 support are fairly small and straightforward, so similar implementations are expected.

Yes, I tested it myself before opening the PR, and I’m not reproducing the grayscale foliage issue reported on Discord.
From what I can tell, that issue seems related to rendering/color handling changes in that fork, while my PR only focuses on 26.1.2 compatibility.

@jacob1
Copy link
Copy Markdown
Contributor

jacob1 commented May 7, 2026

None of that seems right ... getting an exact 100% copy wouldn't happen even if it is straightforward. But being antagonistic won't help. So I'll just point out what I think the leaf color issue is.

Your PR updates two functions getFoliageColor / getGrassColor. I don't think they match the last known version from 1.21.11 , which had different method calls. Those different method calls could cause the colors to be wrong in some cases. (maybe they are correct in others).

A more accurate version would mirror the method calls in 1.21.11 like this fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants