Use integers instead of booleans

This commit is contained in:
Shoghi Cervantes
2014-02-13 01:59:08 +01:00
parent 4523b15991
commit d0af367395
2 changed files with 15 additions and 26 deletions

View File

@ -105,7 +105,7 @@ class Level{
$now = microtime(true);
$this->players = $this->server->api->player->getAll($this);
if($this->level->isGenerating === false and count($this->changedCount) > 0){
if($this->level->isGenerating === 0 and count($this->changedCount) > 0){
arsort($this->changedCount);
foreach($this->changedCount as $index => $count){
if($count < 582){//Optimal value, calculated using the relation between minichunks and single packets