From 0080a971b50da312842d3477a8aedaf916c10ae3 Mon Sep 17 00:00:00 2001 From: CreepyCre Date: Tue, 16 Feb 2021 11:47:34 +0100 Subject: [PATCH] fix weird player teleportation velocity --- .../dimdev/dimdoors/block/entity/EntranceRiftBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/dimdev/dimdoors/block/entity/EntranceRiftBlockEntity.java b/src/main/java/org/dimdev/dimdoors/block/entity/EntranceRiftBlockEntity.java index 41a79fa7..b4698aea 100644 --- a/src/main/java/org/dimdev/dimdoors/block/entity/EntranceRiftBlockEntity.java +++ b/src/main/java/org/dimdev/dimdoors/block/entity/EntranceRiftBlockEntity.java @@ -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;