explosion tweaks

This commit is contained in:
GameHerobrine 2023-02-22 17:22:44 +03:00
parent 90d1865cb1
commit a5a0c0e000
3 changed files with 23 additions and 12 deletions

View file

@ -3,10 +3,10 @@
class LavaBlock extends LiquidBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(LAVA, $meta, "Lava");
$this->hardness = 0;
$this->hardness = 500;
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$ret = $this->level->setBlock($this, $this, true, false, true);
ServerAPI::request()->api->block->scheduleBlockUpdate(clone $this, 40, BLOCK_UPDATE_NORMAL);
return $ret;