remove useless type asserts on Entity->getWorld()

This commit is contained in:
Dylan K. Taylor
2020-02-07 22:08:38 +00:00
parent 85f3dca11b
commit bc60bb9462
2 changed files with 0 additions and 2 deletions

View File

@@ -36,7 +36,6 @@ class FlintSteel extends Tool{
public function onActivate(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : ItemUseResult{
if($blockReplace->getId() === BlockLegacyIds::AIR){
$world = $player->getWorld();
assert($world !== null);
$world->setBlock($blockReplace->getPos(), VanillaBlocks::FIRE());
$world->addSound($blockReplace->getPos()->add(0.5, 0.5, 0.5), new FlintSteelSound());