eliminate remaining empty() usages

This commit is contained in:
Dylan K. Taylor
2020-02-07 21:46:16 +00:00
parent 1ffabbb567
commit aac7da6c96
22 changed files with 40 additions and 30 deletions

View File

@ -29,6 +29,7 @@ use pocketmine\event\entity\EntityEffectRemoveEvent;
use pocketmine\utils\Color;
use pocketmine\utils\Utils;
use function abs;
use function count;
use function spl_object_id;
class EffectManager{
@ -188,7 +189,7 @@ class EffectManager{
}
}
if(!empty($colors)){
if(count($colors) > 0){
$this->bubbleColor = Color::mix(...$colors);
$this->onlyAmbientEffects = $ambient;
}else{
@ -217,7 +218,7 @@ class EffectManager{
}
}
return !empty($this->effects);
return count($this->effects) > 0;
}
/**