Skip to content

Commit

Permalink
Update CheckManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TreeOfSelf committed Nov 24, 2024
1 parent 66a1152 commit f76f084
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -210,7 +210,7 @@ public static void rollBackVehicle(ServerPlayerEntity serverPlayerEntity, Vehicl

List<Entity> 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));
Expand Down

0 comments on commit f76f084

Please sign in to comment.