Fixed server creating resource packs directory inside itself when running from a phar

Once again, epic facepalm @dktapps
This commit is contained in:
Dylan K. Taylor 2017-03-20 13:20:34 +00:00
parent 0e64d4bbc2
commit 6a03f8d434

View File

@ -1546,7 +1546,7 @@ class Server{
Attribute::init();
$this->craftingManager = new CraftingManager();
$this->resourceManager = new ResourcePackManager($this, \pocketmine\PATH . "resource_packs" . DIRECTORY_SEPARATOR);
$this->resourceManager = new ResourcePackManager($this, $this->getDataPath() . "resource_packs" . DIRECTORY_SEPARATOR);
$this->pluginManager = new PluginManager($this, $this->commandMap);
$this->pluginManager->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE, $this->consoleSender);