mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
fixed spider and pigman ai
This commit is contained in:
parent
8b47cf1b66
commit
c2e53d91c2
4 changed files with 5 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue