Fix pitcher pod wrongly registered as a block (#6162)

This commit is contained in:
ace
2023-11-27 22:46:20 +08:00
committed by GitHub
parent a1748a92ca
commit d596dc571d
7 changed files with 56 additions and 3 deletions

View File

@ -30,6 +30,7 @@ use pocketmine\block\utils\StaticSupportTrait;
use pocketmine\event\block\StructureGrowEvent;
use pocketmine\item\Fertilizer;
use pocketmine\item\Item;
use pocketmine\item\VanillaItems;
use pocketmine\math\Axis;
use pocketmine\math\AxisAlignedBB;
use pocketmine\math\Facing;
@ -101,4 +102,8 @@ final class PitcherCrop extends Flowable{
$this->grow(null);
}
}
public function asItem() : Item{
return VanillaItems::PITCHER_POD();
}
}