Skip to content

Commit ab68168

Browse files
authored
1.21.6 (#749)
* merge upstream * Update to 1.21.6 and replace deprecated teleport flags in ISmoothTeleport * Changed to support only one version
1 parent 769b30e commit ab68168

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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.5-R0.1-SNAPSHOT")
10+
paperweight.paperDevBundle("1.21.6-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: 1 addition & 1 deletion
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.5"))
55+
if (!version.equals("1.21.6"))
5656
throw new IllegalStateException("Movecraft is not compatible with this version of Minecraft: " + version);
5757
}
5858

v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ public class ISmoothTeleport extends SmoothTeleport {
1010
public void teleport(@NotNull Player player, @NotNull Location location) {
1111
player.teleport(
1212
location,
13-
TeleportFlag.Relative.X,
14-
TeleportFlag.Relative.Y,
15-
TeleportFlag.Relative.Z,
16-
TeleportFlag.Relative.PITCH,
17-
TeleportFlag.Relative.YAW,
13+
TeleportFlag.Relative.VELOCITY_X,//x
14+
TeleportFlag.Relative.VELOCITY_Y,//y
15+
TeleportFlag.Relative.VELOCITY_Z,//z
16+
TeleportFlag.Relative.VELOCITY_ROTATION,//pitch
17+
TeleportFlag.Relative.VELOCITY_ROTATION,//yaw
1818
TeleportFlag.EntityState.RETAIN_OPEN_INVENTORY,
1919
TeleportFlag.EntityState.RETAIN_VEHICLE,
2020
TeleportFlag.EntityState.RETAIN_PASSENGERS

0 commit comments

Comments
 (0)