some tweaks

This commit is contained in:
GameHerobrine 2024-05-23 06:38:20 +03:00
parent b94d0f2ba1
commit 3d6c4feb0f
7 changed files with 37 additions and 44 deletions

View file

@ -500,13 +500,8 @@ class PMFLevel extends PMF{
++$this->chunkChange[$index][$Y];
}
$this->chunkChange[$index][-1] = true;
if($old_b instanceof LiquidBlock){
$pos = new Position($x, $y, $z, $this->level);
for($side = 0; $side <= 5; ++$side){
$b = $pos->getSide($side);
ServerAPI::request()->api->block->scheduleBlockUpdate($b, ($b instanceof LavaBlock ? 40: 10), BLOCK_UPDATE_NORMAL);
}
}
if($block > 0) StaticBlock::getBlock($block)::onPlace($this->level, $x, $y, $z);
return true;
}
return false;