Merge commit '8726604899d1a371567141e0831ed570d3233356'

This commit is contained in:
Dylan K. Taylor
2019-12-25 14:19:35 +00:00
16 changed files with 39 additions and 30 deletions

View File

@@ -32,6 +32,7 @@ use pocketmine\math\Vector3;
use pocketmine\player\Player;
use pocketmine\world\sound\PaintingPlaceSound;
use function array_rand;
use function count;
class PaintingItem extends Item{
@@ -64,7 +65,7 @@ class PaintingItem extends Item{
}
}
if(empty($motives)){ //No space available
if(count($motives) === 0){ //No space available
return ItemUseResult::NONE();
}