mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
tweaked knockbacc
This commit is contained in:
parent
4aa120c3f2
commit
7a1bf49ca0
1 changed files with 1 additions and 0 deletions
|
|
@ -1527,6 +1527,7 @@ class Entity extends Position
|
|||
$f = sqrt($d * $d + $d1 * $d1);
|
||||
$f1 = 0.4;
|
||||
$this->speedX /= 2;
|
||||
$this->speedY /= 2;
|
||||
$this->speedZ /= 2;
|
||||
$this->speedX -= ($d / $f) * $f1;
|
||||
$this->speedY += 0.4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue