mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
Player: use own logger for movement debug
This commit is contained in:
parent
5392ddf0b9
commit
7b806e74b8
@ -1209,7 +1209,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($exceededRateLimit){ //client and server positions will be out of sync if this happens
|
if($exceededRateLimit){ //client and server positions will be out of sync if this happens
|
||||||
$this->server->getLogger()->debug("Player " . $this->getName() . " exceeded movement rate limit, forcing to last accepted position");
|
$this->logger->debug("Exceeded movement rate limit, forcing to last accepted position");
|
||||||
$this->sendPosition($this->location, $this->location->getYaw(), $this->location->getPitch(), MovePlayerPacket::MODE_RESET);
|
$this->sendPosition($this->location, $this->location->getYaw(), $this->location->getPitch(), MovePlayerPacket::MODE_RESET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user