mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Merge commit '8726604899d1a371567141e0831ed570d3233356'
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user