Remove some more Vector3 mutations

This commit is contained in:
Dylan K. Taylor
2020-06-27 20:58:02 +01:00
parent c040248dbd
commit ff00595a48
4 changed files with 5 additions and 14 deletions

View File

@ -247,7 +247,7 @@ abstract class Projectile extends Entity{
}
$this->isCollided = $this->onGround = true;
$this->motion->x = $this->motion->y = $this->motion->z = 0;
$this->motion = new Vector3(0, 0, 0);
}else{
$this->isCollided = $this->onGround = false;
$this->blockHit = null;