farm -> dirt on player fall, how works better

This commit is contained in:
GameHerobrine 2023-07-10 00:41:20 +03:00
parent 1baafb8b26
commit 8e5d2bb1c7
8 changed files with 34 additions and 22 deletions

View file

@ -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);