Skip to content

Commit

Permalink
[Bukkit] Allow 1.21 Paper adapter to load on 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Aug 9, 2024
1 parent 350dfa1 commit 3e6708a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jfrog-buildinfo = "org.jfrog.buildinfo:build-info-extractor-gradle:5.2.0"

fabric-mixin = "net.fabricmc:sponge-mixin:0.13.3+mixin.0.8.5"

paperweight = "io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.7.1"
paperweight = "io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.7.2"

linBus-bom = "org.enginehub.lin-bus:lin-bus-bom:0.1.0"
linBus-common.module = "org.enginehub.lin-bus:lin-bus-common"
Expand Down
2 changes: 1 addition & 1 deletion worldedit-bukkit/adapters/adapter-1.21/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ plugins {

dependencies {
// https://repo.papermc.io/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21-R0.1-20240618.005323-5")
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21-R0.1-20240807.125219-129")
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ public PaperweightAdapter() throws NoSuchFieldException, NoSuchMethodException {
CraftServer.class.cast(Bukkit.getServer());

int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion();
if (dataVersion != 3953) {
throw new UnsupportedClassVersionError("Not 1.21!");
if (dataVersion != 3953 && dataVersion != 3955) {
throw new UnsupportedClassVersionError("Not 1.21(.1)!");
}

serverWorldsField = CraftServer.class.getDeclaredField("worlds");
Expand Down

0 comments on commit 3e6708a

Please sign in to comment.