mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Fixed uninitialized color fields of stained glass, stained clay and stained hardened glass
This commit is contained in:
parent
c273b29dec
commit
256826d9c7
@ -24,7 +24,13 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\ColorInMetadataTrait;
|
use pocketmine\block\utils\ColorInMetadataTrait;
|
||||||
|
use pocketmine\block\utils\DyeColor;
|
||||||
|
|
||||||
final class StainedGlass extends Glass{
|
final class StainedGlass extends Glass{
|
||||||
use ColorInMetadataTrait;
|
use ColorInMetadataTrait;
|
||||||
|
|
||||||
|
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
|
||||||
|
$this->color = DyeColor::WHITE();
|
||||||
|
parent::__construct($idInfo, $name, $breakInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,13 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\ColorInMetadataTrait;
|
use pocketmine\block\utils\ColorInMetadataTrait;
|
||||||
|
use pocketmine\block\utils\DyeColor;
|
||||||
|
|
||||||
final class StainedGlassPane extends GlassPane{
|
final class StainedGlassPane extends GlassPane{
|
||||||
use ColorInMetadataTrait;
|
use ColorInMetadataTrait;
|
||||||
|
|
||||||
|
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
|
||||||
|
$this->color = DyeColor::WHITE();
|
||||||
|
parent::__construct($idInfo, $name, $breakInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,13 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\ColorInMetadataTrait;
|
use pocketmine\block\utils\ColorInMetadataTrait;
|
||||||
|
use pocketmine\block\utils\DyeColor;
|
||||||
|
|
||||||
final class StainedHardenedClay extends HardenedClay{
|
final class StainedHardenedClay extends HardenedClay{
|
||||||
use ColorInMetadataTrait;
|
use ColorInMetadataTrait;
|
||||||
|
|
||||||
|
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
|
||||||
|
$this->color = DyeColor::WHITE();
|
||||||
|
parent::__construct($idInfo, $name, $breakInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,13 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\ColorInMetadataTrait;
|
use pocketmine\block\utils\ColorInMetadataTrait;
|
||||||
|
use pocketmine\block\utils\DyeColor;
|
||||||
|
|
||||||
final class StainedHardenedGlass extends HardenedGlass{
|
final class StainedHardenedGlass extends HardenedGlass{
|
||||||
use ColorInMetadataTrait;
|
use ColorInMetadataTrait;
|
||||||
|
|
||||||
|
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
|
||||||
|
$this->color = DyeColor::WHITE();
|
||||||
|
parent::__construct($idInfo, $name, $breakInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,13 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\ColorInMetadataTrait;
|
use pocketmine\block\utils\ColorInMetadataTrait;
|
||||||
|
use pocketmine\block\utils\DyeColor;
|
||||||
|
|
||||||
final class StainedHardenedGlassPane extends HardenedGlassPane{
|
final class StainedHardenedGlassPane extends HardenedGlassPane{
|
||||||
use ColorInMetadataTrait;
|
use ColorInMetadataTrait;
|
||||||
|
|
||||||
|
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
|
||||||
|
$this->color = DyeColor::WHITE();
|
||||||
|
parent::__construct($idInfo, $name, $breakInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user