mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
water starts flowing after breaking ice
This commit is contained in:
parent
92f201b77b
commit
e5b4b8abfe
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class IceBlock extends TransparentBlock{
|
||||||
public function onBreak(Item $item, Player $player){
|
public function onBreak(Item $item, Player $player){
|
||||||
if(($player->gamemode & 0x01) === 0){
|
if(($player->gamemode & 0x01) === 0){
|
||||||
$this->level->setBlock($this, new WaterBlock(), true, false, true);
|
$this->level->setBlock($this, new WaterBlock(), true, false, true);
|
||||||
|
ServerAPI::request()->api->block->scheduleBlockUpdate(clone $this, 10, BLOCK_UPDATE_NORMAL);
|
||||||
}else{
|
}else{
|
||||||
$this->level->setBlock($this, new AirBlock(), true, false, true);
|
$this->level->setBlock($this, new AirBlock(), true, false, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue