diff --git a/src/block/Carpet.php b/src/block/Carpet.php index ba6d24351..19de695e6 100644 --- a/src/block/Carpet.php +++ b/src/block/Carpet.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\ColorInMetadataTrait; +use pocketmine\block\utils\DyeColor; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; @@ -35,6 +36,7 @@ class Carpet extends Flowable{ use ColorInMetadataTrait; public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){ + $this->color = DyeColor::WHITE(); parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.1)); } diff --git a/src/block/Concrete.php b/src/block/Concrete.php index 1201c9c2b..6735c8dce 100644 --- a/src/block/Concrete.php +++ b/src/block/Concrete.php @@ -24,12 +24,14 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\ColorInMetadataTrait; +use pocketmine\block\utils\DyeColor; use pocketmine\item\ToolTier; class Concrete extends Opaque{ use ColorInMetadataTrait; public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){ + $this->color = DyeColor::WHITE(); parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(1.8, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel())); } } diff --git a/src/block/ConcretePowder.php b/src/block/ConcretePowder.php index ab44e9491..826230983 100644 --- a/src/block/ConcretePowder.php +++ b/src/block/ConcretePowder.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\ColorInMetadataTrait; +use pocketmine\block\utils\DyeColor; use pocketmine\block\utils\Fallable; use pocketmine\block\utils\FallableTrait; use pocketmine\math\Facing; @@ -35,6 +36,7 @@ class ConcretePowder extends Opaque implements Fallable{ } public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){ + $this->color = DyeColor::WHITE(); parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.5, BlockToolType::SHOVEL)); } diff --git a/src/block/Wool.php b/src/block/Wool.php index 5a30defb1..14345c345 100644 --- a/src/block/Wool.php +++ b/src/block/Wool.php @@ -24,12 +24,14 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\ColorInMetadataTrait; +use pocketmine\block\utils\DyeColor; use pocketmine\item\Item; class Wool extends Opaque{ use ColorInMetadataTrait; public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){ + $this->color = DyeColor::WHITE(); parent::__construct($idInfo, $name, $breakInfo ?? new class(0.8, BlockToolType::SHEARS) extends BlockBreakInfo{ public function getBreakTime(Item $item) : float{ $time = parent::getBreakTime($item);