Separate Level management functionality from Server, clean up a bunch of mess

This commit is contained in:
Dylan K. Taylor
2019-01-12 19:11:05 +00:00
parent 27761ac26e
commit 5052b75565
22 changed files with 530 additions and 509 deletions

View File

@ -64,7 +64,7 @@ class TimingsHandler{
$entities = 0;
$livingEntities = 0;
foreach(Server::getInstance()->getLevels() as $level){
foreach(Server::getInstance()->getLevelManager()->getLevels() as $level){
$entities += count($level->getEntities());
foreach($level->getEntities() as $e){
if($e instanceof Living){