From 2f42a11267eeea785617603b6c5e4519d9f65413 Mon Sep 17 00:00:00 2001 From: bixilon Date: Sun, 7 Jun 2020 15:01:31 +0200 Subject: [PATCH] enable OtherPlayer velocity --- .../minosoft/game/datatypes/entities/OtherPlayer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/bixilon/minosoft/game/datatypes/entities/OtherPlayer.java b/src/main/java/de/bixilon/minosoft/game/datatypes/entities/OtherPlayer.java index 43c163017..efe5facc8 100644 --- a/src/main/java/de/bixilon/minosoft/game/datatypes/entities/OtherPlayer.java +++ b/src/main/java/de/bixilon/minosoft/game/datatypes/entities/OtherPlayer.java @@ -24,6 +24,7 @@ public class OtherPlayer implements Mob { final UUID uuid; PlayerPropertyData[] properties; Location location; + Velocity velocity; int yaw; int pitch; int headYaw; @@ -70,16 +71,14 @@ public class OtherPlayer implements Mob { location = new Location(location.getX() + relativeLocation.getX(), location.getY() + relativeLocation.getY(), location.getZ() + relativeLocation.getZ()); } - @Deprecated @Override public Velocity getVelocity() { - return null; + return velocity; } - @Deprecated @Override public void setVelocity(Velocity velocity) { - + this.velocity = velocity; } @Override