mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-03-02 14:20:03 +00:00
Load the NPC and warp JSON files according to the config file.
NPC data was being read from the config, but ignored.
This commit is contained in:
@@ -17,7 +17,7 @@ void NPCManager::init() {
|
||||
// load NPCs from NPCs.json into our NPC manager
|
||||
|
||||
try {
|
||||
std::ifstream inFile("NPCs.json");
|
||||
std::ifstream inFile(settings::NPCJSON);
|
||||
nlohmann::json npcData;
|
||||
|
||||
// read file into json
|
||||
@@ -37,7 +37,7 @@ void NPCManager::init() {
|
||||
}
|
||||
|
||||
try {
|
||||
std::ifstream infile("warps.json");
|
||||
std::ifstream infile(settings::WARPJSON);
|
||||
nlohmann::json warpData;
|
||||
|
||||
// read file into json
|
||||
|
||||
Reference in New Issue
Block a user