mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
farm -> dirt on player fall, how works better
This commit is contained in:
parent
1baafb8b26
commit
8e5d2bb1c7
8 changed files with 34 additions and 22 deletions
|
|
@ -37,6 +37,10 @@ class StaticBlock
|
|||
}
|
||||
}
|
||||
|
||||
public static function getBlock($id){
|
||||
return nullsafe(Block::$class[$id], Block::$class[0]);
|
||||
}
|
||||
|
||||
public static function getBoundingBoxForBlockCoords($id, $x, $y, $z){
|
||||
/**@var AxisAlignedBB $bb*/
|
||||
$bb = nullsafe(self::$boundingBoxes[$id], false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue