Skip to content

Commit

Permalink
Fix GTPP check (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Aug 16, 2024
1 parent 6ab6507 commit 95c0ffe
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions src/main/java/gttweaker/GTTweaker.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gttweaker;

import static gregtech.api.enums.Mods.GTPlusPlus;

import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
Expand All @@ -8,7 +10,6 @@
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import gregtech.api.GregTech_API;
import gttweaker.mods.gregtech.Fuels;
import gttweaker.mods.gregtech.RA2Builder;
import gttweaker.mods.gregtech.RecipeRemover;
Expand Down Expand Up @@ -112,24 +113,20 @@ public void init(FMLInitializationEvent event) {
MineTweakerAPI.registerClass(Unpacker.class);
MineTweakerAPI.registerClass(VacuumFreezer.class);
MineTweakerAPI.registerClass(Wiremill.class);
if (GregTech_API.VERSION >= 508) {
MineTweakerAPI.registerClass(ArcFurnace.class);
MineTweakerAPI.registerClass(DistillationTower.class);
MineTweakerAPI.registerClass(FusionReactor.class);
MineTweakerAPI.registerClass(PlasmaArcFurnace.class);
}
if (GregTech_API.VERSION >= 509) {
MineTweakerAPI.registerClass(PyrolyseOven.class);
MineTweakerAPI.registerClass(OilCracker.class);
MineTweakerAPI.registerClass(AssemblyLine.class);
MineTweakerAPI.registerClass(CircuitAssembler.class);
MineTweakerAPI.registerClass(Compressor.class);
MineTweakerAPI.registerClass(Extractor.class);
MineTweakerAPI.registerClass(OreWasher.class);
MineTweakerAPI.registerClass(ThermalCentrifuge.class);
MineTweakerAPI.registerClass(PrimitiveBlastFurnace.class);
}
if (GregTech_API.mGTPlusPlus) {
MineTweakerAPI.registerClass(ArcFurnace.class);
MineTweakerAPI.registerClass(DistillationTower.class);
MineTweakerAPI.registerClass(FusionReactor.class);
MineTweakerAPI.registerClass(PlasmaArcFurnace.class);
MineTweakerAPI.registerClass(PyrolyseOven.class);
MineTweakerAPI.registerClass(OilCracker.class);
MineTweakerAPI.registerClass(AssemblyLine.class);
MineTweakerAPI.registerClass(CircuitAssembler.class);
MineTweakerAPI.registerClass(Compressor.class);
MineTweakerAPI.registerClass(Extractor.class);
MineTweakerAPI.registerClass(OreWasher.class);
MineTweakerAPI.registerClass(ThermalCentrifuge.class);
MineTweakerAPI.registerClass(PrimitiveBlastFurnace.class);
if (GTPlusPlus.isModLoaded()) {
MineTweakerAPI.registerClass(BlastSmelter.class);
MineTweakerAPI.registerClass(CokeOven.class);
MineTweakerAPI.registerClass(Dehydrator.class);
Expand Down

0 comments on commit 95c0ffe

Please sign in to comment.