Fixed AsyncWorker not getting the proper path and not using the correct class

This commit is contained in:
Shoghi Cervantes 2014-08-08 11:51:36 +02:00
parent 51120fdd4f
commit eff454d103

View File

@ -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"