Stop hardcoding src/pocketmine/resources everywhere

This commit is contained in:
Dylan K. Taylor
2017-12-11 19:52:49 +00:00
parent 1f1531810d
commit dfc2d1dfe6
4 changed files with 4 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ class Effect{
protected static $effects = [];
public static function init(){
$config = new Config(\pocketmine\PATH . "src/pocketmine/resources/effects.json", Config::JSON, []);
$config = new Config(\pocketmine\RESOURCE_PATH . "effects.json", Config::JSON, []);
foreach($config->getAll() as $name => $data){
$color = hexdec(substr($data["color"], 3));