Allow changing Electric Boots using ThaumicBoots Keybinds. (#75)

* Allow changing Traveler Boots speed using ThaumicBoots Keybinds.

* Air speed bonus gets modified by speedModifier

* Spotless Apply :/

* Added the temp lib file for tests

This should instead use the remote dependency system once TB PR 27 is merged

* Fix potential NSM exception when GTNH Thaumic Boots is not present.

* Spotless apply.

* Now using ThaumicBoots 1.2.2-Pre build

* Delete ThaumicBoots-1.2.1-master+4e33b9941e-dirty-dev.jar

* Fixed DuplicateMod, Excluded EMT from the ThaumicBoots pre jar

* Fixing the EMT Issues + Updating the way the Electric Boots Work

* Update dependencies.gradle

* update

---------

Co-authored-by: Alastors <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-05-06 13:48:33 -04:00
1 parent 547db6d7d0
commit 74d1aced60
7 files changed
+59 -13

No files matched your search

+7
View File
@@ -7,6 +7,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
@@ -65,12 +66,18 @@ public class EMT {
@Mod.Instance("EMT")
public static EMT instance;
public static boolean isBootsActive = false;
public static final String BOOTS = "thaumicboots";
public boolean isSimulating() {
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
}
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
if (Loader.isModLoaded(BOOTS)) {
isBootsActive = true;
}
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
if (FMLCommonHandler.instance().getSide().isClient()) {