diff --git a/src/pocketmine/block/Ice.php b/src/pocketmine/block/Ice.php index b3e33af14..3c214cf3b 100644 --- a/src/pocketmine/block/Ice.php +++ b/src/pocketmine/block/Ice.php @@ -56,7 +56,7 @@ class Ice extends Transparent{ } public function onBreak(Item $item, Player $player = null) : bool{ - if(!$item->hasEnchantment(Enchantment::SILK_TOUCH)){ + if(($player === null or $player->isSurvival()) and !$item->hasEnchantment(Enchantment::SILK_TOUCH)){ return $this->getLevel()->setBlock($this, BlockFactory::get(Block::WATER), true); } return parent::onBreak($item, $player);