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

@ -30,6 +30,7 @@ use pocketmine\math\Vector3;
use pocketmine\player\Player;
use pocketmine\world\BlockTransaction;
use function array_intersect_key;
use function count;
class Vine extends Flowable{
@ -113,7 +114,7 @@ class Vine extends Flowable{
}
if($changed){
if(empty($this->faces)){
if(count($this->faces) === 0){
$this->pos->getWorld()->useBreakOn($this->pos);
}else{
$this->pos->getWorld()->setBlock($this->pos, $this);