enable OtherPlayer velocity

This commit is contained in:
bixilon 2020-06-07 15:01:31 +02:00
parent 7571a50c6a
commit 2f42a11267
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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