diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-05 18:48:58 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-05 18:48:58 +0000 |
commit | 44c25340dcabffd6387cf695269c4486aae2e6f2 (patch) | |
tree | 7f01079c9dd4ddac605f0ba1a66311c2e33af94b /src/main/java | |
parent | 5636eea877183cf82b7b11f7d131cb2647e9a70d (diff) | |
download | craftbukkit-44c25340dcabffd6387cf695269c4486aae2e6f2.tar craftbukkit-44c25340dcabffd6387cf695269c4486aae2e6f2.tar.gz craftbukkit-44c25340dcabffd6387cf695269c4486aae2e6f2.tar.lz craftbukkit-44c25340dcabffd6387cf695269c4486aae2e6f2.tar.xz craftbukkit-44c25340dcabffd6387cf695269c4486aae2e6f2.zip |
Velocity now sends updates to players
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index e40ba0bd..0d425ef0 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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); } } |