File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/main/java/net/countercraft/movecraft Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)
77
88dependencies {
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
1313description = " Movecraft-v1_21"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments