diff options
author | boubou19 <miisterunknown@gmail.com> | 2023-04-09 01:08:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 01:08:26 +0200 |
commit | 26caa265b7eae49767947e1ff4e6cfc8166b07f5 (patch) | |
tree | 0fc0332da7a843cf153bf75fcc2e20601bbf18ee /src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java | |
parent | c33b3ba66194c7441fbd437530d21a51aa4395d5 (diff) | |
download | GT5-Unofficial-26caa265b7eae49767947e1ff4e6cfc8166b07f5.tar.gz GT5-Unofficial-26caa265b7eae49767947e1ff4e6cfc8166b07f5.tar.bz2 GT5-Unofficial-26caa265b7eae49767947e1ff4e6cfc8166b07f5.zip |
clean up GT++ code (#589)
* yeet big reactor support
* yeet IC2 classic support
* yeet pneumaticraft support
* yeet More Planets support
* yeet Immersive Engineering support
* yeet Psychedilicraft support
* yeet Beyond Reality Core support
* sort mods to see what must be purged
* yeet simply jetpacks
* yeet RFTools
* yeet xReliquary
* yeet RedTech
* yeet Mekanism
* yeet GrowthCraft
* yeet ihl
* leftover cleaning
* yeet thermal fondation support
* yeet compact windmills support
* spotless
* remove constants from LoadedMods (part 1 / 2)
* spotless
* remove constants from LoadedMods (part 2 / 2)
* use mod id enum instead of strings + optimize imports
* Loaded.isModLoaded -> enum
* restore RA init
* missing !
* start organizing recipes stuff
* fix crash on world load in dev
* remove unused class
* remove HazmatUtils.java
* move all the removals
* remove enableHarderRecipesForHighTierCasings and usages(disabled in the pack)
* move some pyrolyse oven recipes to its own file
* sa
* bump GT version
* bump GT5U version
* spotless apply
* use Everglades entry from the mod enum
---------
Co-authored-by: miozune <miozune@gmail.com>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java b/src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java index 5a945e6998..26952bd657 100644 --- a/src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java +++ b/src/main/java/gtPlusPlus/xmod/sol/HANDLER_SpiceOfLife.java @@ -1,31 +1,24 @@ package gtPlusPlus.xmod.sol; +import static gregtech.api.enums.Mods.SpiceOfLife; + import java.lang.reflect.Constructor; import net.minecraft.item.Item; import cpw.mods.fml.common.registry.GameRegistry; import gtPlusPlus.api.objects.Logger; -import gtPlusPlus.core.lib.LoadedMods; import gtPlusPlus.core.util.reflect.ReflectionUtils; public class HANDLER_SpiceOfLife { public static final void preInit() { - if (LoadedMods.SpiceOfLife) { + if (SpiceOfLife.isModLoaded()) { // Add a new Lunch Box with a reasonable amount of slots tryRegisterNewLunchBox("foodcrate", 12); } } - public static final void init() { - if (LoadedMods.SpiceOfLife) {} - } - - public static final void postInit() { - if (LoadedMods.SpiceOfLife) {} - } - private static boolean tryRegisterNewLunchBox(String aItemName, int aSlots) { Item aNewBox = getNewLunchBox(aItemName, aSlots); if (aNewBox != null) { |