mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Rename BlockIds -> BlockLegacyIds
This commit is contained in:
@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\block\utils;
|
||||
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\block\BlockIds;
|
||||
use pocketmine\block\BlockLegacyIds;
|
||||
use pocketmine\block\Fire;
|
||||
use pocketmine\block\Liquid;
|
||||
use pocketmine\entity\EntityFactory;
|
||||
@ -48,8 +48,8 @@ trait FallableTrait{
|
||||
public function onNearbyBlockChange() : void{
|
||||
$pos = $this->asPosition();
|
||||
$down = $pos->level->getBlock($pos->getSide(Facing::DOWN));
|
||||
if($down->getId() === BlockIds::AIR or $down instanceof Liquid or $down instanceof Fire){
|
||||
$pos->level->setBlock($pos, BlockFactory::get(BlockIds::AIR));
|
||||
if($down->getId() === BlockLegacyIds::AIR or $down instanceof Liquid or $down instanceof Fire){
|
||||
$pos->level->setBlock($pos, BlockFactory::get(BlockLegacyIds::AIR));
|
||||
|
||||
$nbt = EntityFactory::createBaseNBT($pos->add(0.5, 0, 0.5));
|
||||
$nbt->setInt("TileID", $this->getId());
|
||||
|
Reference in New Issue
Block a user