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; final UUID uuid;
PlayerPropertyData[] properties; PlayerPropertyData[] properties;
Location location; Location location;
Velocity velocity;
int yaw; int yaw;
int pitch; int pitch;
int headYaw; 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()); location = new Location(location.getX() + relativeLocation.getX(), location.getY() + relativeLocation.getY(), location.getZ() + relativeLocation.getZ());
} }
@Deprecated
@Override @Override
public Velocity getVelocity() { public Velocity getVelocity() {
return null; return velocity;
} }
@Deprecated
@Override @Override
public void setVelocity(Velocity velocity) { public void setVelocity(Velocity velocity) {
this.velocity = velocity;
} }
@Override @Override