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
|
|
@ -74,6 +74,7 @@ class StaticBlock
|
|||
|
||||
self::setBlockBounds(SUGARCANE_BLOCK, 0.5 - 0.375, 0, 0.5 - 0.375, 0.5 + 0.375, 1, 0.5 + 0.375);
|
||||
self::setBlockBounds(SNOW_LAYER, 0, 0, 0, 1, 0.125, 1);
|
||||
self::setBlockBounds(CARPET, 0, 0, 0, 1, 0, 1);
|
||||
//Stairs: based on different factors
|
||||
//Stone wall: based on state
|
||||
|
||||
|
|
|
|||
|
|
@ -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