Move functions from PocketMine.php to Utils

This cleans a lot of mess out of the bootstrap file, and also has the added bonus that threads which do not inherit functions can now get access to them by autoloading Utils.
This commit is contained in:
Dylan K. Taylor
2018-02-19 11:56:22 +00:00
parent ad8d67137e
commit 6a996611f8
7 changed files with 91 additions and 91 deletions

View File

@ -95,7 +95,7 @@ class LoginPacket extends DataPacket{
$logger = MainLogger::getLogger();
$logger->debug(get_class($e) . " was thrown while decoding connection request in login (protocol version " . ($this->protocol ?? "unknown") . "): " . $e->getMessage());
foreach(\pocketmine\getTrace(0, $e->getTrace()) as $line){
foreach(Utils::getTrace(0, $e->getTrace()) as $line){
$logger->debug($line);
}
}