mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed Ice converting to water on creative
This commit is contained in:
parent
aff9349d20
commit
cf8e3e41ba
@ -25,7 +25,11 @@ class IceBlock extends TransparentBlock{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onBreak(Item $item, Player $player){
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user