Fixed Ice converting to water on creative

This commit is contained in:
Shoghi Cervantes 2013-09-04 12:56:35 +02:00
parent aff9349d20
commit cf8e3e41ba

View File

@ -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;
}