Replace all legacy blockID references with BlockIds::

This commit is contained in:
Dylan K. Taylor
2019-03-23 19:36:09 +00:00
parent f84d7ad70d
commit 79ef8e0803
79 changed files with 526 additions and 505 deletions

View File

@ -51,7 +51,7 @@ class NetherWartPlant extends Flowable{
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
$down = $this->getSide(Facing::DOWN);
if($down->getId() === Block::SOUL_SAND){
if($down->getId() === BlockIds::SOUL_SAND){
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
}
@ -59,7 +59,7 @@ class NetherWartPlant extends Flowable{
}
public function onNearbyBlockChange() : void{
if($this->getSide(Facing::DOWN)->getId() !== Block::SOUL_SAND){
if($this->getSide(Facing::DOWN)->getId() !== BlockIds::SOUL_SAND){
$this->getLevel()->useBreakOn($this);
}
}