mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Fixed Ice converting to water on creative
This commit is contained in:
parent
aff9349d20
commit
cf8e3e41ba
1 changed files with 5 additions and 1 deletions
|
|
@ -25,7 +25,11 @@ class IceBlock extends TransparentBlock{
|
|||
}
|
||||
|
||||
public function onBreak(Item $item, Player $player){
|
||||
$this->level->setBlock($this, new WaterBlock());
|
||||
if(($player->gamemode & 0x01) === 0){
|
||||
$this->level->setBlock($this, new WaterBlock(), true, false, true);
|
||||
}else{
|
||||
$this->level->setBlock($this, new AirBlock(), true, false, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue