diff --git a/src/material/block/solid/IceBlock.php b/src/material/block/solid/IceBlock.php index 43f878b0..05659239 100644 --- a/src/material/block/solid/IceBlock.php +++ b/src/material/block/solid/IceBlock.php @@ -11,6 +11,11 @@ class IceBlock extends TransparentBlock{ $this->level->scheduleBlockUpdate(new Position($this, 0, 0, $this->level), Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM); return $ret; } + + public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){ + return [new AxisAlignedBB($x, $y, $z, $x+1, $y+1, $z+1)]; + } + public function onBreak(Item $item, Player $player){ if(($player->gamemode & 0x01) === 0){ $this->level->setBlock($this, new WaterBlock(), true, false, true); @@ -74,4 +79,4 @@ class IceBlock extends TransparentBlock{ public function getDrops(Item $item, Player $player){ return array(); } -} \ No newline at end of file +}