mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
some fixes to prevent deprecated warning spam on php 8.2
This commit is contained in:
parent
1272932257
commit
2f6e2ffcab
10 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue