fixed trpadoors, walls and beds hitboxes + projectile aabb fix for tallgrass

This commit is contained in:
GameHerobrine 2024-05-09 01:40:55 +03:00
parent 518f6a99a7
commit 057fb8898a
4 changed files with 105 additions and 1 deletions

View file

@ -20,7 +20,11 @@ class BedBlock extends TransparentBlock{
$this->isFullBlock = false;
$this->hardness = 1;
}
//TODO collision box
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
return [static::getAABB($level, $x, $y, $z)];
}
public static function findStandUpPosition(Level $level, $x, $y, $z){
$blockMeta = $level->level->getBlockDamage($x, $y, $z);
$direction = $blockMeta & 0x3;