Replace disallowed operators in src/network/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:11:32 +00:00
parent 2bcb629d78
commit be1996752a
15 changed files with 35 additions and 35 deletions

View File

@ -163,7 +163,7 @@ class ResourcePacksPacketHandler extends PacketHandler{
}
$offset = $packet->chunkIndex * self::PACK_CHUNK_SIZE;
if($offset < 0 or $offset >= $pack->getPackSize()){
if($offset < 0 || $offset >= $pack->getPackSize()){
$this->disconnectWithError("Invalid out-of-bounds request for chunk $packet->chunkIndex of $packet->packId: offset $offset, file size " . $pack->getPackSize());
return false;
}