fix weird player teleportation velocity

This commit is contained in:
CreepyCre 2021-02-16 11:47:34 +01:00
parent 8b84a21d99
commit 0080a971b5

View file

@ -76,7 +76,7 @@ public class EntranceRiftBlockEntity extends RiftBlockEntity {
entity = TeleportUtil.teleport(entity, this.world, targetPos, relativeAngle, relativeVelocity);
if (entity instanceof ServerPlayerEntity) {
ServerPlayerEntity player = (ServerPlayerEntity) entity;
player.networkHandler.sendPacket(new EntityVelocityUpdateS2CPacket(player));
player.networkHandler.sendPacket(new EntityVelocityUpdateS2CPacket(player.getId(), relativeVelocity));
}
return true;