mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
Velocity now sends updates to players
This commit is contained in:
parent
5636eea877
commit
44c25340dc
1 changed files with 3 additions and 4 deletions
|
@ -100,6 +100,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
entity.motX = vel.getX();
|
||||
entity.motY = vel.getY();
|
||||
entity.motZ = vel.getZ();
|
||||
entity.aY = true;
|
||||
}
|
||||
|
||||
public World getWorld() {
|
||||
|
@ -179,12 +180,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
}
|
||||
|
||||
public Vector getMomentum() {
|
||||
return new Vector(entity.motX, entity.motY, entity.motZ);
|
||||
return getVelocity();
|
||||
}
|
||||
|
||||
public void setMomentum(Vector value) {
|
||||
entity.motX = value.getX();
|
||||
entity.motY = value.getY();
|
||||
entity.motZ = value.getZ();
|
||||
setVelocity(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue