mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Item: Replace a usage of hardcoded resource path with \pocketmine\RESOURCE_PATH
This commit is contained in:
parent
42a7b7fa36
commit
8e6ec04abc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user