Skip to content

Commit 8919cb0

Browse files
authored
When 1.21.5? (#743)
* Update versions * Fix build
1 parent 1528d09 commit 8919cb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Movecraft/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ hangarPublish {
6666
platforms {
6767
register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) {
6868
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
69-
platformVersions.set(listOf("1.20.6", "1.21.4"))
69+
platformVersions.set(listOf("1.20.6", "1.21.5"))
7070
}
7171
}
7272
}

v1_21/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)
77

88
dependencies {
99
api(project(":movecraft-api"))
10-
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
10+
paperweight.paperDevBundle("1.21.5-R0.1-SNAPSHOT")
1111
}
1212

1313
description = "Movecraft-v1_21"

v1_21/src/main/java/net/countercraft/movecraft/compat/v1_21/IWorldHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class IWorldHandler extends WorldHandler {
5252

5353
public IWorldHandler() {
5454
String version = Bukkit.getServer().getMinecraftVersion();
55-
if (!version.equals("1.21.4"))
55+
if (!version.equals("1.21.5"))
5656
throw new IllegalStateException("Movecraft is not compatible with this version of Minecraft: " + version);
5757
}
5858

@@ -242,7 +242,7 @@ private void setBlockFast(@NotNull Level world, @NotNull BlockPos position, @Not
242242
LevelChunkSection section = chunk.getSections()[chunkSection];
243243
if (section == null) {
244244
// Put a GLASS block to initialize the section. It will be replaced next with the real block.
245-
chunk.setBlockState(position, Blocks.GLASS.defaultBlockState(), false);
245+
chunk.setBlockState(position, Blocks.GLASS.defaultBlockState(), 0);
246246
section = chunk.getSections()[chunkSection];
247247
}
248248
if (section.getBlockState(position.getX() & 15, position.getY() & 15, position.getZ() & 15).equals(data)) {

0 commit comments

Comments
 (0)