aaa i hate sql(mobs will cause less lags)

This commit is contained in:
GameHerobrine 2022-11-02 20:21:44 +03:00
parent f40fe179c1
commit 51442ed771
5 changed files with 1411 additions and 1210 deletions

View file

@ -152,6 +152,7 @@ class EntityAPI{
}else{
$this->entities[$eid] = new Entity($level, $eid, $class, $type, $data);
}
$level->entityList[$eid] = &$this->entities[$eid];
$this->server->handle("entity.add", $this->entities[$eid]);
return $this->entities[$eid];
}