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

Commit

Permalink
Cleanup old content and add GT++ patch (#239)
Browse files Browse the repository at this point in the history
* Remove unused EM item

* Remove more unused EM stuff

* Checkpoint for more EM removal.

* Progress!

* Update texture

* Fix textures and remove unused EM pipe

* Remove deprecated datastick reader.

* Spotless

* Remove wormhole multi, unused.

---------

Co-authored-by: GTNH-Colen <[email protected]>
Co-authored-by: Connor Colenso <colen@CONNORSPC>
  • Loading branch information
3 people authored Sep 4, 2023
1 parent 8fcd62b commit a2fea24
Show file tree
Hide file tree
Showing 123 changed files with 58 additions and 19,770 deletions.
34 changes: 3 additions & 31 deletions src/main/java/com/github/technus/tectech/TecTech.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,11 @@

import com.github.technus.tectech.loader.MainLoader;
import com.github.technus.tectech.loader.TecTechConfig;
import com.github.technus.tectech.loader.gui.CreativeTabEM;
import com.github.technus.tectech.loader.gui.CreativeTabTecTech;
import com.github.technus.tectech.mechanics.anomaly.AnomalyHandler;
import com.github.technus.tectech.mechanics.anomaly.CancerCommand;
import com.github.technus.tectech.mechanics.anomaly.ChargeCommand;
import com.github.technus.tectech.mechanics.anomaly.MassCommand;
import com.github.technus.tectech.mechanics.commands.ConvertFloat;
import com.github.technus.tectech.mechanics.commands.ConvertInteger;
import com.github.technus.tectech.mechanics.data.ChunkDataHandler;
import com.github.technus.tectech.mechanics.data.PlayerPersistence;
import com.github.technus.tectech.mechanics.elementalMatter.core.commands.EMGive;
import com.github.technus.tectech.mechanics.elementalMatter.core.commands.EMList;
import com.github.technus.tectech.mechanics.elementalMatter.core.definitions.registry.EMDefinitionsRegistry;
import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.EMTransformationRegistry;
import com.github.technus.tectech.mechanics.enderStorage.EnderWorldSavedData;
import com.github.technus.tectech.nei.IMCForNEI;
import com.github.technus.tectech.proxy.CommonProxy;
Expand All @@ -35,12 +26,7 @@
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLLoadCompleteEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.event.*;
import eu.usrv.yamcore.auxiliary.IngameErrorLog;
import eu.usrv.yamcore.auxiliary.LogHelper;
import gregtech.GT_Mod;
Expand Down Expand Up @@ -71,19 +57,14 @@ public class TecTech {
public static final XSTR RANDOM = XSTR.XSTR_INSTANCE;
public static final LogHelper LOGGER = new LogHelper(Reference.MODID);
public static CreativeTabTecTech creativeTabTecTech;
public static CreativeTabEM creativeTabEM;

private static IngameErrorLog moduleAdminErrorLogs;
public static TecTechConfig configTecTech;

public static EnderWorldSavedData enderWorldSavedData;
public static ChunkDataHandler chunkDataHandler;
public static AnomalyHandler anomalyHandler;
public static PlayerPersistence playerPersistence;

public static final EMDefinitionsRegistry definitionsRegistry = new EMDefinitionsRegistry();
public static final EMTransformationRegistry transformationInfo = new EMTransformationRegistry();

/**
* For Loader.isModLoaded checks during the runtime
*/
Expand Down Expand Up @@ -228,29 +209,20 @@ public Object[] toArray(Object[] a) {
}
}

MainLoader.load(definitionsRegistry);
MainLoader.load();
MainLoader.addAfterGregTechPostLoadRunner();
IMCForNEI.IMCSender();
}

@Mod.EventHandler
public void PostLoad(FMLPostInitializationEvent PostEvent) {
MainLoader.postLoad(definitionsRegistry, transformationInfo);

chunkDataHandler.registerChunkMetaDataHandler(anomalyHandler = new AnomalyHandler());
MainLoader.postLoad();
}

@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent pEvent) {
pEvent.registerServerCommand(new ConvertInteger());
pEvent.registerServerCommand(new ConvertFloat());
pEvent.registerServerCommand(new EMList());
if (DEBUG_MODE) {
pEvent.registerServerCommand(new EMGive());
pEvent.registerServerCommand(new CancerCommand());
pEvent.registerServerCommand(new ChargeCommand());
pEvent.registerServerCommand(new MassCommand());
}
}

@Mod.EventHandler
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a2fea24

Please sign in to comment.