Moved JSON blobs to submodule

This commit is contained in:
Dylan K. Taylor
2018-06-12 18:49:18 +01:00
parent c9ec6f0a63
commit 2e9e44ba05
4 changed files with 6 additions and 2 deletions

View File

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