Skip to content

Commit 1d1e749

Browse files
authored
Update Minecraft 1.21.8 (#3237)
1 parent ce968b0 commit 1d1e749

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ body:
2727
description: Which server version version you using? If your server version is not listed, it is not supported. Update to a supported version first.
2828
multiple: false
2929
options:
30+
- '1.21.8'
31+
- '1.21.7'
32+
- '1.21.6'
33+
- '1.21.5'
3034
- '1.21.4'
3135
- '1.21.1'
3236
- '1.20.6'

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.7")
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.8")
8787

8888
tasks {
8989
supportedVersions.forEach {
@@ -97,7 +97,7 @@ tasks {
9797
}
9898
}
9999
runServer {
100-
minecraftVersion("1.21.7")
100+
minecraftVersion("1.21.8")
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.7-R0.1-20250701.225444-12")
15+
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21.8-R0.1-20250720.221224-10")
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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
204204

205205
private static final RandomSource random = RandomSource.create();
206206

207+
private static final String WRONG_VERSION =
208+
"""
209+
This version of FastAsyncWorldEdit has not been tested with the current Minecraft version.
210+
While it may work, there might be unexpected issues.
211+
It is recommended to use a version of FastAsyncWorldEdit that supports your Minecraft version.
212+
""".stripIndent();
213+
207214
// ------------------------------------------------------------------------
208215
// Code that may break between versions of Minecraft
209216
// ------------------------------------------------------------------------
@@ -213,8 +220,8 @@ public PaperweightAdapter() throws NoSuchFieldException, NoSuchMethodException {
213220
CraftServer.class.cast(Bukkit.getServer());
214221

215222
int dataVersion = SharedConstants.getCurrentVersion().dataVersion().version();
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!");
223+
if (dataVersion != Constants.DATA_VERSION_MC_1_21_6 && dataVersion != Constants.DATA_VERSION_MC_1_21_7 && dataVersion != Constants.DATA_VERSION_MC_1_21_8) {
224+
logger.warning(WRONG_VERSION);
218225
}
219226

220227
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
@@ -118,4 +118,9 @@ private Constants() {
118118
* The DataVersion for Minecraft 1.21.7
119119
*/
120120
public static final int DATA_VERSION_MC_1_21_7 = 4438;
121+
122+
/**
123+
* The DataVersion for Minecraft 1.21.8
124+
*/
125+
public static final int DATA_VERSION_MC_1_21_8 = 4440;
121126
}

0 commit comments

Comments
 (0)