mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Rename BlockIds -> BlockLegacyIds
This commit is contained in:
@ -60,7 +60,7 @@ class Farmland extends Transparent{
|
||||
|
||||
public function onNearbyBlockChange() : void{
|
||||
if($this->getSide(Facing::UP)->isSolid()){
|
||||
$this->level->setBlock($this, BlockFactory::get(BlockIds::DIRT));
|
||||
$this->level->setBlock($this, BlockFactory::get(BlockLegacyIds::DIRT));
|
||||
}
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ class Farmland extends Transparent{
|
||||
$this->wetness--;
|
||||
$this->level->setBlock($this, $this, false);
|
||||
}else{
|
||||
$this->level->setBlock($this, BlockFactory::get(BlockIds::DIRT));
|
||||
$this->level->setBlock($this, BlockFactory::get(BlockLegacyIds::DIRT));
|
||||
}
|
||||
}elseif($this->wetness < 7){
|
||||
$this->wetness = 7;
|
||||
|
Reference in New Issue
Block a user