mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Correct Ice drop
This commit is contained in:
parent
47b54cfd28
commit
228075851c
3 changed files with 20 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue