performance improvements

This commit is contained in:
GameHerobrine 2024-07-04 05:27:43 +03:00
parent 2972e4567e
commit fcff48b5b8
3 changed files with 7 additions and 6 deletions

View file

@ -555,7 +555,7 @@ class Entity extends Position
$id = $this->level->level->getBlockID($x, $y, $z);
if($id > 0){
Block::$class[$id]::onEntityCollidedWithBlock($this->level, $x, $y, $z, $this);
StaticBlock::$prealloc[$id]::onEntityCollidedWithBlock($this->level, $x, $y, $z, $this);
}
}
}