mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed trpadoors, walls and beds hitboxes + projectile aabb fix for tallgrass
This commit is contained in:
parent
518f6a99a7
commit
057fb8898a
4 changed files with 105 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue