fix weird player teleportation velocity
This commit is contained in:
parent
8b84a21d99
commit
0080a971b5
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ public class EntranceRiftBlockEntity extends RiftBlockEntity {
|
||||||
entity = TeleportUtil.teleport(entity, this.world, targetPos, relativeAngle, relativeVelocity);
|
entity = TeleportUtil.teleport(entity, this.world, targetPos, relativeAngle, relativeVelocity);
|
||||||
if (entity instanceof ServerPlayerEntity) {
|
if (entity instanceof ServerPlayerEntity) {
|
||||||
ServerPlayerEntity player = (ServerPlayerEntity) entity;
|
ServerPlayerEntity player = (ServerPlayerEntity) entity;
|
||||||
player.networkHandler.sendPacket(new EntityVelocityUpdateS2CPacket(player));
|
player.networkHandler.sendPacket(new EntityVelocityUpdateS2CPacket(player.getId(), relativeVelocity));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue