mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Stop hardcoding src/pocketmine/resources everywhere
This commit is contained in:
@ -64,7 +64,7 @@ class ResourcePackManager{
|
||||
}
|
||||
|
||||
if(!file_exists($this->path . "resource_packs.yml")){
|
||||
copy($this->server->getFilePath() . "src/pocketmine/resources/resource_packs.yml", $this->path . "resource_packs.yml");
|
||||
copy(\pocketmine\RESOURCE_PATH . "resource_packs.yml", $this->path . "resource_packs.yml");
|
||||
}
|
||||
|
||||
$this->resourcePacksConfig = new Config($this->path . "resource_packs.yml", Config::YAML, []);
|
||||
|
Reference in New Issue
Block a user