Skip to content

Commit 89df416

Browse files
committed
1.21.7 support
1 parent 089617e commit 89df416

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ allprojects {
8383
}
8484

8585
applyCommonConfiguration()
86-
val supportedVersions = listOf("1.20.4", "1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.4", "1.21.5", "1.21.6")
86+
val supportedVersions = listOf("1.20.4", "1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.4", "1.21.5", "1.21.7")
8787

8888
tasks {
8989
supportedVersions.forEach {
@@ -97,7 +97,7 @@ tasks {
9797
}
9898
}
9999
runServer {
100-
minecraftVersion("1.21.3")
100+
minecraftVersion("1.21.7")
101101
pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
102102
.toTypedArray())
103103

worldedit-bukkit/adapters/adapter-1_21_6/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ repositories {
1212

1313
dependencies {
1414
// https://repo.papermc.io/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
15-
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21.6-R0.1-20250621.050219-23")
15+
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21.7-R0.1-20250701.225444-12")
1616
compileOnly(libs.paperlib)
1717
}

worldedit-bukkit/adapters/adapter-1_21_6/src/main/java/com/sk89q/worldedit/bukkit/adapter/ext/fawe/v1_21_6/PaperweightAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public PaperweightAdapter() throws NoSuchFieldException, NoSuchMethodException {
213213
CraftServer.class.cast(Bukkit.getServer());
214214

215215
int dataVersion = SharedConstants.getCurrentVersion().dataVersion().version();
216-
if (dataVersion != Constants.DATA_VERSION_MC_1_21_6) {
217-
throw new UnsupportedClassVersionError("Not 1.21.6!");
216+
if (dataVersion != Constants.DATA_VERSION_MC_1_21_6 && dataVersion != Constants.DATA_VERSION_MC_1_21_7) {
217+
throw new UnsupportedClassVersionError("Not 1.21.6 or 1.21.7!");
218218
}
219219

220220
serverWorldsField = CraftServer.class.getDeclaredField("worlds");

worldedit-core/src/main/java/com/sk89q/worldedit/internal/Constants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,9 @@ private Constants() {
113113
* The DataVersion for Minecraft 1.21.6
114114
*/
115115
public static final int DATA_VERSION_MC_1_21_6 = 4435;
116+
117+
/**
118+
* The DataVersion for Minecraft 1.21.7
119+
*/
120+
public static final int DATA_VERSION_MC_1_21_7 = 4438;
116121
}

worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemTypes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,8 @@ public final class ItemTypes {
16041604
@Nullable
16051605
public static final ItemType MUSIC_DISC_FAR = init();
16061606
@Nullable
1607+
public static final ItemType MUSIC_DISC_LAVA_CHICKEN = init();
1608+
@Nullable
16071609
public static final ItemType MUSIC_DISC_MALL = init();
16081610
@Nullable
16091611
public static final ItemType MUSIC_DISC_MELLOHI = init();

0 commit comments

Comments
 (0)