fixed min speed, item throwing should be smoother

This commit is contained in:
GameHerobrine 2023-12-29 01:00:16 +03:00
parent a6f2c7e257
commit f8c3f9cae3
3 changed files with 5 additions and 5 deletions

View file

@ -17,9 +17,9 @@ class SetEntityMotionPacket extends RakNetDataPacket{
public function encode(){
$this->reset();
$this->putInt($this->eid);
$this->putShort((int) ($this->speedX * 400));
$this->putShort((int) ($this->speedY * 400));
$this->putShort((int) ($this->speedZ * 400));
$this->putShort((int) ($this->speedX * 8000));
$this->putShort((int) ($this->speedY * 8000));
$this->putShort((int) ($this->speedZ * 8000));
}
}