Skip to content

Commit

Permalink
move moduleCheckRequirement to avoid static error
Browse files Browse the repository at this point in the history
  • Loading branch information
RealSilverMoon committed Feb 23, 2024
1 parent c81aeeb commit c6338f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
import com.silvermoon.boxplusplus.common.loader.RecipeLoader;
import com.silvermoon.boxplusplus.common.loader.TileEntitiesLoader;
import com.silvermoon.boxplusplus.network.NetworkLoader;
import com.silvermoon.boxplusplus.util.ResultModuleRequirement;

import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;

public class CommonProxy {

Expand All @@ -24,6 +26,7 @@ public void preInit(FMLPreInitializationEvent event) {
// load "Do your mod setup. Build whatever data structures you care about. Register recipes." (Remove if not needed)
public void init(FMLInitializationEvent event) {
TileEntitiesLoader.register();
CheckRecipeResultRegistry.register(new ResultModuleRequirement(0, false));
}

// postInit "Handle interaction with other mods, complete your setup based on this." (Remove if not needed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.util.EnumChatFormatting;

import gregtech.api.recipe.check.CheckRecipeResult;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;

public class ResultModuleRequirement implements CheckRecipeResult {

Expand Down Expand Up @@ -58,8 +57,4 @@ public boolean equals(Object o) {
ResultModuleRequirement that = (ResultModuleRequirement) o;
return required == that.required && (isUpdated == that.isUpdated);
}

static {
CheckRecipeResultRegistry.register(new ResultModuleRequirement(0, false));
}
}

0 comments on commit c6338f0

Please sign in to comment.