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:
@ -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);
|
||||
|
Reference in New Issue
Block a user