Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Move Mob Recipe Map Generation back to ServerStarting event
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 committed Mar 23, 2023
1 parent c4f318c commit 6bab479
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/java/kubatech/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
package kubatech;

import kubatech.api.utils.ModUtils;
import kubatech.loaders.MobRecipeLoader;
import kubatech.nei.IMCForNEI;
import cpw.mods.fml.common.event.*;

Expand Down Expand Up @@ -53,5 +54,6 @@ public void serverStopped(FMLServerStoppedEvent event) {

public void loadComplete(FMLLoadCompleteEvent event) {
super.loadComplete(event);
MobRecipeLoader.generateMobRecipeMap();
}
}
5 changes: 1 addition & 4 deletions src/main/java/kubatech/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import kubatech.commands.*;
import kubatech.config.Config;
import kubatech.loaders.MTLoader;
import kubatech.loaders.MobRecipeLoader;
import kubatech.loaders.RecipeLoader;
import kubatech.loaders.TCLoader;
import kubatech.savedata.PlayerDataManager;
Expand Down Expand Up @@ -67,7 +66,5 @@ public void serverStopping(FMLServerStoppingEvent event) {}

public void serverStopped(FMLServerStoppedEvent event) {}

public void loadComplete(FMLLoadCompleteEvent event) {
MobRecipeLoader.generateMobRecipeMap();
}
public void loadComplete(FMLLoadCompleteEvent event) {}
}
1 change: 1 addition & 0 deletions src/main/java/kubatech/loaders/RecipeLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static void addRecipesLate() {
if (lateRecipesInitialized) return;
lateRecipesInitialized = true;

MobRecipeLoader.generateMobRecipeMap();
MobRecipeLoader.processMobRecipeMap();
}

Expand Down

0 comments on commit 6bab479

Please sign in to comment.