mobs wont spawn if brightness is too high, aditional file with world data for storing additional information

This commit is contained in:
GameHerobrine 2025-06-23 07:02:31 +03:00
parent d1a724c143
commit cd07581d49
4 changed files with 175 additions and 13 deletions

View file

@ -210,7 +210,11 @@ class ConsoleAPI{
case "status":
$info = $this->server->debugInfo();
if(!($issuer instanceof Player) && $issuer === "console"){
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]}), Entities: {$info["entities"]}, Events: {$info["events"]}, Handlers: {$info["handlers"]}, Actions: {$info["actions"]}, Garbage: {$info["garbage"]}";
$lightUpdates = 0;
foreach($this->server->api->level->levels as $level){
$lightUpdates += count($level->lightUpdates);
}
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]}), Entities: {$info["entities"]}, Events: {$info["events"]}, Handlers: {$info["handlers"]}, Actions: {$info["actions"]}, Garbage: {$info["garbage"]} Light updates: {$lightUpdates}";
}
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]})";
case "stop":