mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
made aabb work correctly with 0-height hitboxes, added hitbox for carpet, world will save all data on autosave
This commit is contained in:
parent
e13b1f28ce
commit
66d847c82f
4 changed files with 17 additions and 12 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue