From 44dfb594094e8c43f0f6f74b7b90b6488dc57030 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 18 Feb 2015 00:39:31 +0100 Subject: [PATCH] Fixed Entity->setMotion() for Players --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index cdda34cd7..8a60e6a43 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1199,7 +1199,7 @@ abstract class Entity extends Location implements Metadatable{ if(!$this->justCreated){ if($this instanceof Player){ - $this->addEntityMotion(0, $this->motionX, $this->motionY, $this->motionZ); + $this->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ); } $this->updateMovement(); }