mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
performance improvements
This commit is contained in:
parent
2972e4567e
commit
fcff48b5b8
3 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue