Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Velocity now sends updates to players
Dieser Commit ist enthalten in:
Ursprung
5636eea877
Commit
44c25340dc
@ -100,6 +100,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
entity.motX = vel.getX();
|
entity.motX = vel.getX();
|
||||||
entity.motY = vel.getY();
|
entity.motY = vel.getY();
|
||||||
entity.motZ = vel.getZ();
|
entity.motZ = vel.getZ();
|
||||||
|
entity.aY = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public World getWorld() {
|
public World getWorld() {
|
||||||
@ -179,12 +180,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Vector getMomentum() {
|
public Vector getMomentum() {
|
||||||
return new Vector(entity.motX, entity.motY, entity.motZ);
|
return getVelocity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMomentum(Vector value) {
|
public void setMomentum(Vector value) {
|
||||||
entity.motX = value.getX();
|
setVelocity(value);
|
||||||
entity.motY = value.getY();
|
|
||||||
entity.motZ = value.getZ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren