Merge branch 'next-minor'

This commit is contained in:
Dylan K. Taylor
2019-05-02 15:07:38 +01:00
2 changed files with 10 additions and 2 deletions

View File

@ -227,6 +227,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
throw new \InvalidStateException("Cannot create entities in unloaded chunks");
}
$this->motion = new Vector3(0, 0, 0);
if($nbt->hasTag("Motion", ListTag::class)){
/** @var float[] $motion */
$motion = $nbt->getListTag("Motion")->getAllValues();