mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Stop hardcoding src/pocketmine/resources everywhere
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user