ÂHangingRoots: fixed incorrect support face

This commit is contained in:
Dylan K. Taylor 2023-09-08 12:22:00 +01:00
parent 03ecc98a24
commit 0e87ee1e0e
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -33,7 +33,7 @@ use pocketmine\world\BlockTransaction;
final class HangingRoots extends Flowable{
private function canBeSupportedAt(Block $block) : bool{
return $block->getAdjacentSupportType(Facing::DOWN)->hasCenterSupport(); //weird I know, but they can be placed on the bottom of fences
return $block->getAdjacentSupportType(Facing::UP)->hasCenterSupport(); //weird I know, but they can be placed on the bottom of fences
}
public function place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{