mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Separate Level management functionality from Server, clean up a bunch of mess
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user