water starts flowing after breaking ice

This commit is contained in:
GameHerobrine 2022-05-10 21:55:00 +03:00
parent 92f201b77b
commit e5b4b8abfe

View file

@ -28,6 +28,7 @@ class IceBlock extends TransparentBlock{
public function onBreak(Item $item, Player $player){
if(($player->gamemode & 0x01) === 0){
$this->level->setBlock($this, new WaterBlock(), true, false, true);
ServerAPI::request()->api->block->scheduleBlockUpdate(clone $this, 10, BLOCK_UPDATE_NORMAL);
}else{
$this->level->setBlock($this, new AirBlock(), true, false, true);
}