Commit 9b5a812a authored by Frago9876543210's avatar Frago9876543210
Browse files

Support php 7.2.0RC

parent 20aea03e
......@@ -481,7 +481,7 @@ class PlayerInventory extends BaseInventory {
return $armor;
}
public function clearAll(){
public function clearAll($send = true){
$limit = $this->getSize() + 4;
for($index = 0; $index < $limit; ++$index){
$this->clear($index, false);
......
......@@ -3069,7 +3069,7 @@ class Level implements ChunkManager, Metadatable
}
public function unloadChunks(bool $force = false) {
if (count($this->unloadQueue) > 0) {
if (!is_null($this->unloadQueue) && count($this->unloadQueue) > 0) {
$maxUnload = 96;
$now = microtime(true);
foreach ($this->unloadQueue as $index => $time) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment