From 28996f561ff6349096a31471fa6568337c416f99 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 24 Jan 2018 11:56:32 +0000 Subject: [PATCH] Player: Added a hack for knockback being messed up This needs to be updated server side and isn't because of the way player movement is currently handled. Fixing this properly will require a lot more work than this. --- src/pocketmine/Player.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 1c40b6904..be31d8540 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1658,6 +1658,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ if($this->spawned){ $this->processMovement($tickDiff); + $this->motionX = $this->motionY = $this->motionZ = 0; //TODO: HACK! (Fixes player knockback being messed up) Timings::$timerEntityBaseTick->startTiming(); $this->entityBaseTick($tickDiff);