Player: use own logger for movement debug

This commit is contained in:
Dylan K. Taylor 2021-01-07 22:02:43 +00:00
parent 5392ddf0b9
commit 7b806e74b8
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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