mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Stop hardcoding src/pocketmine/resources everywhere
This commit is contained in:
@ -51,8 +51,7 @@ class CraftingManager{
|
||||
private $craftingDataCache;
|
||||
|
||||
public function __construct(){
|
||||
// load recipes from src/pocketmine/resources/recipes.json
|
||||
$recipes = new Config(Server::getInstance()->getFilePath() . "src/pocketmine/resources/recipes.json", Config::JSON, []);
|
||||
$recipes = new Config(\pocketmine\RESOURCE_PATH . "recipes.json", Config::JSON, []);
|
||||
|
||||
MainLogger::getLogger()->info("Loading recipes...");
|
||||
foreach($recipes->getAll() as $recipe){
|
||||
|
Reference in New Issue
Block a user