mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 20:35:15 +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(){
|
public static function initCreativeItems(){
|
||||||
self::clearCreativeItems();
|
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){
|
foreach($creativeItems->getAll() as $data){
|
||||||
$item = Item::jsonDeserialize($data);
|
$item = Item::jsonDeserialize($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user