mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Replace BlockLegacyIds usages with BlockTypeIds where possible
This commit is contained in:
@ -38,8 +38,8 @@ class TallGrass extends Flowable{
|
||||
}
|
||||
|
||||
public function place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
$down = $this->getSide(Facing::DOWN)->getId();
|
||||
if($down === BlockLegacyIds::GRASS || $down === BlockLegacyIds::DIRT){
|
||||
$down = $this->getSide(Facing::DOWN)->getTypeId();
|
||||
if($down === BlockTypeIds::GRASS || $down === BlockTypeIds::DIRT){
|
||||
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user