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.
This commit is contained in:
Dylan K. Taylor 2018-01-24 11:56:32 +00:00
parent 0658c0851b
commit 28996f561f

View File

@ -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);