Move legacy recipes and creative items in-house

having them here allows BedrockData to represent latest versions freely, without being limited by technical limitations of PM4.
This commit is contained in:
Dylan K. Taylor
2023-02-02 15:25:03 +00:00
parent 3c46bf01c6
commit cfa1e7486a
4 changed files with 54888 additions and 2 deletions

View File

@ -37,7 +37,7 @@ final class CreativeInventory{
private array $creative = [];
private function __construct(){
$creativeItems = json_decode(Filesystem::fileGetContents(Path::join(\pocketmine\BEDROCK_DATA_PATH, "creativeitems.json")), true);
$creativeItems = json_decode(Filesystem::fileGetContents(Path::join(\pocketmine\RESOURCE_PATH, "legacy_creativeitems.json")), true);
foreach($creativeItems as $data){
$item = Item::jsonDeserialize($data);