Skip to content
Merged
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ body:
description: Which server version version you using? If your server version is not listed, it is not supported. Update to a supported version first.
multiple: false
options:
- '1.21.8'
- '1.21.7'
- '1.21.6'
- '1.21.5'
- '1.21.4'
- '1.21.1'
- '1.20.6'
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ allprojects {
}

applyCommonConfiguration()
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")
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")

tasks {
supportedVersions.forEach {
Expand All @@ -97,7 +97,7 @@ tasks {
}
}
runServer {
minecraftVersion("1.21.7")
minecraftVersion("1.21.8")
pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
.toTypedArray())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ repositories {

dependencies {
// https://repo.papermc.io/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21.7-R0.1-20250701.225444-12")
the<PaperweightUserDependenciesExtension>().paperDevBundle("1.21.8-R0.1-20250720.221224-10")
compileOnly(libs.paperlib)
}
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft

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

private static final String WRONG_VERSION =
"""
This version of FastAsyncWorldEdit has not been tested with the current Minecraft version.
While it may work, there might be unexpected issues.
It is recommended to use a version of FastAsyncWorldEdit that supports your Minecraft version.
""".stripIndent();

// ------------------------------------------------------------------------
// Code that may break between versions of Minecraft
// ------------------------------------------------------------------------
Expand All @@ -213,8 +220,8 @@ public PaperweightAdapter() throws NoSuchFieldException, NoSuchMethodException {
CraftServer.class.cast(Bukkit.getServer());

int dataVersion = SharedConstants.getCurrentVersion().dataVersion().version();
if (dataVersion != Constants.DATA_VERSION_MC_1_21_6 && dataVersion != Constants.DATA_VERSION_MC_1_21_7) {
throw new UnsupportedClassVersionError("Not 1.21.6 or 1.21.7!");
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) {
logger.warning(WRONG_VERSION);
}

serverWorldsField = CraftServer.class.getDeclaredField("worlds");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ private Constants() {
* The DataVersion for Minecraft 1.21.7
*/
public static final int DATA_VERSION_MC_1_21_7 = 4438;

/**
* The DataVersion for Minecraft 1.21.8
*/
public static final int DATA_VERSION_MC_1_21_8 = 4440;
}
Loading