mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Merge branch 'stable' into minor-next
This commit is contained in:
commit
f7f5af607c
@ -52,16 +52,19 @@ class DeadBush extends Flowable{
|
|||||||
|
|
||||||
private function canBeSupportedAt(Block $block) : bool{
|
private function canBeSupportedAt(Block $block) : bool{
|
||||||
$supportBlock = $block->getSide(Facing::DOWN);
|
$supportBlock = $block->getSide(Facing::DOWN);
|
||||||
//TODO: can we use tags here?
|
return
|
||||||
return match($supportBlock->getTypeId()){
|
$supportBlock->hasTypeTag(BlockTypeTags::SAND) ||
|
||||||
BlockTypeIds::SAND,
|
$supportBlock->hasTypeTag(BlockTypeTags::MUD) ||
|
||||||
BlockTypeIds::RED_SAND,
|
match($supportBlock->getTypeId()){
|
||||||
BlockTypeIds::PODZOL,
|
//can't use DIRT tag here because it includes farmland
|
||||||
BlockTypeIds::MYCELIUM,
|
BlockTypeIds::PODZOL,
|
||||||
BlockTypeIds::DIRT,
|
BlockTypeIds::MYCELIUM,
|
||||||
BlockTypeIds::HARDENED_CLAY,
|
BlockTypeIds::DIRT,
|
||||||
BlockTypeIds::STAINED_CLAY => true,
|
BlockTypeIds::GRASS,
|
||||||
default => false
|
BlockTypeIds::HARDENED_CLAY,
|
||||||
};
|
BlockTypeIds::STAINED_CLAY => true,
|
||||||
|
//TODO: moss block
|
||||||
|
default => false,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user