some fixes to prevent deprecated warning spam on php 8.2

This commit is contained in:
GameHerobrine 2026-01-05 10:39:06 +03:00
parent 1272932257
commit 2f6e2ffcab
10 changed files with 12 additions and 7 deletions

View file

@ -961,7 +961,7 @@ class Player{
}
$this->lastChunk = [$x, $z];
if($this->lastOrderX != ($this->entity->x >> 4) || $this->lastOrderZ != ($this->entity->z >> 4)){
if($this->lastOrderX != ((int)$this->entity->x >> 4) || $this->lastOrderZ != ((int)$this->entity->z >> 4)){
$this->orderChunks();
}
$this->server->schedule(MAX_CHUNK_RATE, [$this, "getNextChunk"], $world);
@ -1940,7 +1940,6 @@ class Player{
}
$this->entityMovementQueueLength += $len;
$this->entityMovementPacketsPerSecond += $packets;
}
/**