Added various blocks made from mangrove, crimson and warped wood

This commit is contained in:
Dylan K. Taylor
2022-07-03 19:01:34 +01:00
parent 6176f0d9df
commit dd615c775d
24 changed files with 568 additions and 136 deletions

View File

@ -25,7 +25,7 @@ namespace pocketmine\block;
use pocketmine\block\utils\HorizontalFacingTrait;
use pocketmine\block\utils\SupportType;
use pocketmine\block\utils\TreeType;
use pocketmine\block\utils\WoodType;
use pocketmine\data\runtime\block\BlockDataReader;
use pocketmine\data\runtime\block\BlockDataWriter;
use pocketmine\event\block\BlockGrowEvent;
@ -89,7 +89,7 @@ class CocoaBlock extends Transparent{
}
private function canAttachTo(Block $block) : bool{
return $block instanceof Wood && $block->getTreeType()->equals(TreeType::JUNGLE());
return $block instanceof Wood && $block->getWoodType()->equals(WoodType::JUNGLE());
}
public function place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{