mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: removed an old hack for setFlying() feedback loop
this is no longer a concern, since we now check if the sent state matches the current state before doing anything, at multiple layers.
This commit is contained in:
parent
d94578a420
commit
5c994e4a24
@ -1779,9 +1779,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
if($ev->isCancelled()){
|
||||
return false;
|
||||
}
|
||||
//don't use setFlying() here, to avoid feedback loops - TODO: get rid of this hack
|
||||
$this->flying = $fly;
|
||||
$this->resetFallDistance();
|
||||
$this->setFlying($fly);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user