Bed and Skull items now return a correct block, with appropriate type information

I wanted to do the same for banners, but unfortunately banners are a tad more complicated.
This commit is contained in:
Dylan K. Taylor
2021-06-30 17:27:14 +01:00
parent 12905d8c27
commit c05f6db8d9
4 changed files with 4 additions and 10 deletions

View File

@ -42,7 +42,7 @@ class Bed extends Item{
}
public function getBlock(?int $clickedFace = null) : Block{
return VanillaBlocks::BED();
return VanillaBlocks::BED()->setColor($this->color);
}
public function getMaxStackSize() : int{