From a53cfa415a65d98e74bf5ffa9eff83bfc2522a0e Mon Sep 17 00:00:00 2001 From: TylerS1066 Date: Sun, 11 Aug 2024 10:57:11 -0500 Subject: [PATCH] First attempt --- Movecraft/build.gradle.kts | 2 +- v1_21/build.gradle.kts | 2 +- .../net/countercraft/movecraft/compat/v1_21/IWorldHandler.java | 2 +- .../countercraft/movecraft/support/v1_21/ISmoothTeleport.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Movecraft/build.gradle.kts b/Movecraft/build.gradle.kts index 7d261568d..683722e23 100644 --- a/Movecraft/build.gradle.kts +++ b/Movecraft/build.gradle.kts @@ -68,7 +68,7 @@ hangarPublish { platforms { register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) { jar.set(tasks.shadowJar.flatMap { it.archiveFile }) - platformVersions.set(listOf("1.18.2", "1.20.6", "1.21")) + platformVersions.set(listOf("1.18.2", "1.20.6", "1.21.1")) } } } diff --git a/v1_21/build.gradle.kts b/v1_21/build.gradle.kts index 8d4c44fcd..d84125889 100644 --- a/v1_21/build.gradle.kts +++ b/v1_21/build.gradle.kts @@ -7,7 +7,7 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21) dependencies { api(project(":movecraft-api")) - paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT") + paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT") } description = "Movecraft-v1_21" diff --git a/v1_21/src/main/java/net/countercraft/movecraft/compat/v1_21/IWorldHandler.java b/v1_21/src/main/java/net/countercraft/movecraft/compat/v1_21/IWorldHandler.java index e2ed2fc0d..d7405bfdf 100644 --- a/v1_21/src/main/java/net/countercraft/movecraft/compat/v1_21/IWorldHandler.java +++ b/v1_21/src/main/java/net/countercraft/movecraft/compat/v1_21/IWorldHandler.java @@ -48,7 +48,7 @@ public class IWorldHandler extends WorldHandler { public IWorldHandler() { String version = Bukkit.getServer().getMinecraftVersion(); - if (!version.equals("1.21")) + if (!version.equals("1.21.1")) throw new IllegalStateException("Movecraft is not compatible with this version of Minecraft: " + version); } diff --git a/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java b/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java index f7bdfff99..0d77c7f9a 100644 --- a/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java +++ b/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java @@ -17,7 +17,7 @@ /** * Code derived from code taken with permission from MicleBrick * https://www.spigotmc.org/threads/teleport-player-smoothly.317416/ - * Used for 1.21 + * Used for 1.21.1 */ public class ISmoothTeleport extends SmoothTeleport { private final Field teleportPosField;