diff --git a/Movecraft/build.gradle.kts b/Movecraft/build.gradle.kts index 2678ac7a4..6b3ece292 100644 --- a/Movecraft/build.gradle.kts +++ b/Movecraft/build.gradle.kts @@ -66,7 +66,7 @@ hangarPublish { platforms { register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) { jar.set(tasks.shadowJar.flatMap { it.archiveFile }) - platformVersions.set(listOf("1.20.6", "1.21.4")) + platformVersions.set(listOf("1.20.6", "1.21.5")) } } } diff --git a/v1_21/build.gradle.kts b/v1_21/build.gradle.kts index a795167e2..cdc645a8d 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.4-R0.1-SNAPSHOT") + paperweight.paperDevBundle("1.21.5-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 8d9d1ca8d..bdec20a7e 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 @@ -52,7 +52,7 @@ public class IWorldHandler extends WorldHandler { public IWorldHandler() { String version = Bukkit.getServer().getMinecraftVersion(); - if (!version.equals("1.21.4")) + if (!version.equals("1.21.5")) throw new IllegalStateException("Movecraft is not compatible with this version of Minecraft: " + version); } @@ -242,7 +242,7 @@ private void setBlockFast(@NotNull Level world, @NotNull BlockPos position, @Not LevelChunkSection section = chunk.getSections()[chunkSection]; if (section == null) { // Put a GLASS block to initialize the section. It will be replaced next with the real block. - chunk.setBlockState(position, Blocks.GLASS.defaultBlockState(), false); + chunk.setBlockState(position, Blocks.GLASS.defaultBlockState(), 0); section = chunk.getSections()[chunkSection]; } if (section.getBlockState(position.getX() & 15, position.getY() & 15, position.getZ() & 15).equals(data)) {