Skip to content

Commit

Permalink
I _knew_ I had that mod skipping code in for a reason. Don't load For…
Browse files Browse the repository at this point in the history
…estry's classes if Forestry isn't present, since it will crash
  • Loading branch information
pkmnfrk committed Oct 22, 2018
1 parent ea367f9 commit 95a54fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/mike_caron/megacorp/impl/QuestManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ private boolean loadQuests(Path root, Path url)
if(json.has("mod"))
mod = json.get("mod").getAsString();

//if(!Loader.isModLoaded(mod))
//{
// MegaCorpMod.logger.info("Skipping " + mod + " quests, because it's not loaded");
//
//}
if(!Loader.isModLoaded(mod))
{
MegaCorpMod.logger.debug("Skipping " + mod + " quests, because it's not loaded");
return true;
}

if(json.has("quests"))
{
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/megacorp/quests/forestry.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"mod": "forestry",
"factories": [
"com.mike_caron.megacorp.impl.quests.Forestry$Tubes",
"com.mike_caron.megacorp.impl.quests.Forestry$Bees"
Expand Down

0 comments on commit 95a54fd

Please sign in to comment.