Fixed Entity->setMotion() for Players

This commit is contained in:
Shoghi Cervantes 2015-02-18 00:39:31 +01:00
parent 696ba08a81
commit 44dfb59409

View File

@ -1199,7 +1199,7 @@ abstract class Entity extends Location implements Metadatable{
if(!$this->justCreated){ if(!$this->justCreated){
if($this instanceof Player){ 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(); $this->updateMovement();
} }