made aabb work correctly with 0-height hitboxes, added hitbox for carpet, world will save all data on autosave

This commit is contained in:
GameHerobrine 2024-07-18 05:00:05 +03:00
parent e13b1f28ce
commit 66d847c82f
4 changed files with 17 additions and 12 deletions

View file

@ -27,7 +27,9 @@ class CarpetBlock extends FlowableBlock{
$this->isFullBlock = false;
$this->isSolid = true;
}
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
return [static::getAABB($level, $x, $y, $z)];
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$down = $this->getSide(0);
if($down->getID() !== AIR){