summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-03-05 18:48:58 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-05 18:48:58 +0000
commit44c25340dcabffd6387cf695269c4486aae2e6f2 (patch)
tree7f01079c9dd4ddac605f0ba1a66311c2e33af94b /src/main/java
parent5636eea877183cf82b7b11f7d131cb2647e9a70d (diff)
downloadcraftbukkit-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.java7
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);
}
}