static blockID for all blocks

This commit is contained in:
GameHerobrine 2024-07-10 19:58:25 +03:00
parent 205e432f52
commit 36be0211f9
109 changed files with 111 additions and 13 deletions

View file

@ -159,7 +159,7 @@ abstract class Block extends Position{
public static function neighborChanged(Level $level, $x, $y, $z, $nX, $nY, $nZ, $oldID){}
public static function getAABB(Level $level, $x, $y, $z){
return StaticBlock::getAABB($level, $x, $y, $z);
return StaticBlock::getAABB(static::$blockID, $x, $y, $z);
}
public static function containsX($id, $v){