mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Move block registration to its own class
This commit is contained in:
@ -26,6 +26,7 @@ namespace pocketmine;
|
||||
use pocketmine\block\Air;
|
||||
use pocketmine\block\Bed;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\command\Command;
|
||||
use pocketmine\command\CommandSender;
|
||||
use pocketmine\entity\Arrow;
|
||||
@ -2493,7 +2494,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
}
|
||||
$block = $target->getSide($packet->face);
|
||||
if($block->getId() === Block::FIRE){
|
||||
$this->level->setBlock($block, Block::get(Block::AIR));
|
||||
$this->level->setBlock($block, BlockFactory::get(Block::AIR));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user