mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed AsyncWorker not getting the proper path and not using the correct class
This commit is contained in:
parent
51120fdd4f
commit
eff454d103
@ -24,10 +24,9 @@ namespace pocketmine\scheduler;
|
||||
use pocketmine\Worker;
|
||||
|
||||
class AsyncWorker extends Worker{
|
||||
public $path;
|
||||
|
||||
public function run(){
|
||||
require($this->path . "src/spl/SplClassLoader.php");
|
||||
require(\pocketmine\PATH . "src/spl/SplClassLoader.php");
|
||||
$autoloader = new \SplClassLoader();
|
||||
$autoloader->add("pocketmine", array(
|
||||
$this->path . "src"
|
||||
|
Loading…
x
Reference in New Issue
Block a user