mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
eliminate remaining empty() usages
This commit is contained in:
@ -548,7 +548,7 @@ class Chunk{
|
||||
}
|
||||
|
||||
public function isDirty() : bool{
|
||||
return $this->dirtyFlags !== 0 or !empty($this->tiles) or !empty($this->getSavableEntities());
|
||||
return $this->dirtyFlags !== 0 or count($this->tiles) > 0 or count($this->getSavableEntities()) > 0;
|
||||
}
|
||||
|
||||
public function getDirtyFlag(int $flag) : bool{
|
||||
|
Reference in New Issue
Block a user