fixed spider and pigman ai

This commit is contained in:
GameHerobrine 2024-02-14 05:18:34 +03:00
parent 8b47cf1b66
commit c2e53d91c2
4 changed files with 5 additions and 6 deletions

View file

@ -17,10 +17,6 @@ class IceBlock extends TransparentBlock{
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);