From f76f084b1c232cc0758b841cf56d3b7895a85511 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 24 Nov 2024 14:41:50 -0800 Subject: [PATCH] Update CheckManager.java --- .../java/me/sebastian420/PandaAC/manager/CheckManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/sebastian420/PandaAC/manager/CheckManager.java b/src/main/java/me/sebastian420/PandaAC/manager/CheckManager.java index f1e8dc7..0975e4d 100644 --- a/src/main/java/me/sebastian420/PandaAC/manager/CheckManager.java +++ b/src/main/java/me/sebastian420/PandaAC/manager/CheckManager.java @@ -192,7 +192,7 @@ public static void rollBack(ServerPlayerEntity serverPlayerEntity, PlayerMovemen //We should do something like this where your velocity is counted til you hit the ground //Vec3d velocity = serverPlayerEntity.getVelocity(); - serverPlayerEntity.teleport(serverPlayerEntity.getServerWorld(), playerData.getLastX(), playerData.getLastY(), playerData.getLastZ(),PositionFlag.VALUES , serverPlayerEntity.getYaw(), serverPlayerEntity.getPitch(), false); + serverPlayerEntity.teleport(serverPlayerEntity.getServerWorld(), playerData.getLastX(), playerData.getLastY(), playerData.getLastZ(),PositionFlag.DELTA , serverPlayerEntity.getYaw(), serverPlayerEntity.getPitch(), false); playerData.teleport(playerData.getLastX(), playerData.getLastY(), playerData.getLastZ(), time); PandaLogger.getLogger().info("TELEPORTED TO {} {} {}", playerData.getLastX(), playerData.getLastY(), playerData.getLastZ()); //serverPlayerEntity.setVelocity(velocity); @@ -210,7 +210,7 @@ public static void rollBackVehicle(ServerPlayerEntity serverPlayerEntity, Vehicl List passengers = vehicle.getPassengerList(); passengers.iterator().forEachRemaining(Entity::dismountVehicle); - vehicle.teleport((ServerWorld) vehicle.getWorld(), vehicleData.getLastX(), vehicleData.getLastY(), vehicleData.getLastZ(), PositionFlag.VALUES, vehicle.getYaw(), vehicle.getPitch(), false); + vehicle.teleport((ServerWorld) vehicle.getWorld(), vehicleData.getLastX(), vehicleData.getLastY(), vehicleData.getLastZ(), PositionFlag.DELTA, vehicle.getYaw(), vehicle.getPitch(), false); vehicleData.teleport(vehicleData.getLastX(), vehicleData.getLastY(), vehicleData.getLastZ(), time); vehicle.setVelocity(new Vec3d(0,0,0));