Correct Ice drop

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-20 16:38:41 +02:00
parent 47b54cfd28
commit 228075851c
3 changed files with 20 additions and 14 deletions

View file

@ -30,6 +30,11 @@ class IceBlock extends TransparentBlock{
parent::__construct(ICE, 0, "Ice");
}
public function onBreak(Item $item, Player $player){
$this->level->setBlock($this, new WaterBlock());
return true;
}
public function getBreakTime(Item $item, Player $player){
if(($player->gamemode & 0x01) === 0x01){
return 0.20;