fixed item motion on client side

This commit is contained in:
GameHerobrine 2024-01-12 05:16:12 +03:00
parent bf1169b3f2
commit b7f9d3f1c5
2 changed files with 3 additions and 7 deletions

View file

@ -57,9 +57,5 @@ class ItemEntity extends Entity{
if($this->onGround) $this->speedY *= -0.5;
//TODO ++age; despawn after age >= 6000;
if(abs($this->speedX) < self::MIN_POSSIBLE_SPEED) $this->speedX = 0;
if(abs($this->speedZ) < self::MIN_POSSIBLE_SPEED) $this->speedZ = 0;
if(abs($this->speedY) < self::MIN_POSSIBLE_SPEED) $this->speedY = 0;
}
}