From 44c25340dcabffd6387cf695269c4486aae2e6f2 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sat, 5 Mar 2011 18:48:58 +0000 Subject: [PATCH] Velocity now sends updates to players --- .../java/org/bukkit/craftbukkit/entity/CraftEntity.java | 7 +++---- 1 file 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 e40ba0bd40..0d425ef0c3 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); } }