|
64 | 64 | import net.minecraftforge.event.RegistryEvent; |
65 | 65 | import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent; |
66 | 66 | import net.minecraftforge.fml.client.event.ConfigChangedEvent; |
| 67 | +import net.minecraftforge.fml.common.FMLCommonHandler; |
67 | 68 | import net.minecraftforge.fml.common.Loader; |
68 | 69 | import net.minecraftforge.fml.common.LoaderState; |
69 | 70 | import net.minecraftforge.fml.common.Mod; |
@@ -445,9 +446,13 @@ public void onLoadComplete() { |
445 | 446 | // If JEI and GS is not loaded, refresh ore dict ingredients |
446 | 447 | // Not needed if JEI is loaded, as done in the JEI plugin (and this runs after that) |
447 | 448 | // Not needed if GS is loaded, as done after script loads (and this runs after that) |
448 | | - if (!GregTechAPI.moduleManager.isModuleEnabled(GregTechModules.MODULE_JEI) && |
449 | | - !GroovyScriptModule.isCurrentlyRunning()) |
450 | | - GTRecipeOreInput.refreshStackCache(); |
| 449 | + if (!GroovyScriptModule.isCurrentlyRunning()) { |
| 450 | + // EXCEPTION: IF GrS is not loaded, and JEI is loaded, and we are in a dedicated server env, refresh |
| 451 | + // This is due to JEI Plugin Register not taking place on server, and GrS not acting as the backup. |
| 452 | + if (!GregTechAPI.moduleManager.isModuleEnabled(GregTechModules.MODULE_JEI) || |
| 453 | + FMLCommonHandler.instance().getSide().isServer()) |
| 454 | + GTRecipeOreInput.refreshStackCache(); |
| 455 | + } |
451 | 456 | } |
452 | 457 |
|
453 | 458 | public boolean isFancyGraphics() { |
|
0 commit comments