Improvements and fixes (#15)

* Improvements and fixes

* Add config option not to search in EnderIO conduits
This commit is contained in:
Oleg Ivanov authored and GitHub committed 2024-05-22 19:28:12 +02:00
1 parent 4a11c18f99
commit 41e2db4644
15 files changed
+486 -181

No files matched your search

@@ -30,6 +30,7 @@ public class FindIt {
private boolean extraUtilitiesLoaded;
private boolean gregTechloaded;
private boolean enderIOloaded;
private SearchCooldownService cooldownService;
private BlockFindService blockFindService;
@@ -39,6 +40,8 @@ public class FindIt {
public void preInit(FMLPreInitializationEvent event) {
this.extraUtilitiesLoaded = Loader.isModLoaded("ExtraUtilities");
this.gregTechloaded = Loader.isModLoaded("gregtech");
this.enderIOloaded = Loader.isModLoaded("EnderIO");
FindItConfig.setup(event.getSuggestedConfigurationFile());
boolean isClient = event.getSide() == Side.CLIENT;
@@ -66,4 +69,8 @@ public class FindIt {
public static boolean isGregTechLoaded() {
return INSTANCE.gregTechloaded;
}
public static boolean isEnderIOLoaded() {
return INSTANCE.enderIOloaded;
}
}