Item: Replace a usage of hardcoded resource path with \pocketmine\RESOURCE_PATH

This commit is contained in:
Dylan K. Taylor 2018-02-15 12:24:57 +00:00
parent 42a7b7fa36
commit 8e6ec04abc

View File

@ -123,7 +123,7 @@ class Item implements ItemIds, \JsonSerializable{
public static function initCreativeItems(){
self::clearCreativeItems();
$creativeItems = new Config(Server::getInstance()->getFilePath() . "src/pocketmine/resources/creativeitems.json", Config::JSON, []);
$creativeItems = new Config(\pocketmine\RESOURCE_PATH . "creativeitems.json", Config::JSON, []);
foreach($creativeItems->getAll() as $data){
$item = Item::jsonDeserialize($data);