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

@ -1340,7 +1340,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
if($this->spawned){
$this->processMostRecentMovements();
$this->motion->x = $this->motion->y = $this->motion->z = 0; //TODO: HACK! (Fixes player knockback being messed up)
$this->motion = new Vector3(0, 0, 0); //TODO: HACK! (Fixes player knockback being messed up)
if($this->onGround){
$this->inAirTicks = 0;
}else{