Remove some config settings that break things, fixes #732
This commit is contained in:
parent
ee9f48bc84
commit
fdb506ad15
3 changed files with 32 additions and 22 deletions
|
@ -97,8 +97,8 @@ dependencies {
|
|||
deobfCompile 'RebornCore:RebornCore-1.10.2:+:universal'
|
||||
deobfCompile "mezz.jei:jei_1.10.2:+"
|
||||
// compile "net.darkhax.tesla:Tesla:1.9.4-1.1.0.24:deobf"
|
||||
deobfCompile "slimeknights.mantle:Mantle:1.9.4-0.10.1.jenkins142"
|
||||
deobfCompile "slimeknights:TConstruct:1.9.4-2.3.1.jenkins229"
|
||||
deobfCompile "slimeknights:TConstruct:1.10.2-2.5.3.jenkins384"
|
||||
deobfCompile "slimeknights.mantle:Mantle:1.10.2-1.0.0.jenkins170"
|
||||
deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14"
|
||||
deobfCompile 'net.industrial-craft:industrialcraft-2:2.6.58-ex110:dev'
|
||||
}
|
||||
|
|
|
@ -26,27 +26,29 @@ public class CompatManager {
|
|||
public CompatManager() {
|
||||
isIC2Loaded = Loader.isModLoaded("IC2");
|
||||
isQuantumStorageLoaded = Loader.isModLoaded("quantumstorage");
|
||||
registerCompact(MinetweakerCompat.class, "MineTweaker3");
|
||||
registerCompact(TechRebornParts.class, "reborncore-mcmultipart");
|
||||
registerCompact(ClientPartLoader.class, "reborncore-mcmultipart", "@client");
|
||||
registerCompact(StandalonePartCompact.class, "!reborncore-mcmultipart");
|
||||
registerCompact(WailaMcMultiPartCompact.class, "reborncore-mcmultipart", "Waila", "!IC2");
|
||||
registerCompact(CompatModuleWaila.class, "Waila");
|
||||
registerCompact(CompatModuleTinkers.class, "tconstruct");
|
||||
registerCompact(CompactTheOneProbe.class, "theoneprobe");
|
||||
//registerCompact(CompatModulePsi.class, "Psi");
|
||||
registerCompact(RecipesIC2.class, "IC2");
|
||||
register(MinetweakerCompat.class, "MineTweaker3");
|
||||
registerCompact(TechRebornParts.class, false, "reborncore-mcmultipart");
|
||||
registerCompact(ClientPartLoader.class, false, "reborncore-mcmultipart", "@client");
|
||||
registerCompact(StandalonePartCompact.class, false, "!reborncore-mcmultipart");
|
||||
registerCompact(WailaMcMultiPartCompact.class, false, "reborncore-mcmultipart", "Waila", "!IC2");
|
||||
register(CompatModuleWaila.class, "Waila");
|
||||
register(CompatModuleTinkers.class, "tconstruct");
|
||||
register(CompactTheOneProbe.class, "theoneprobe");
|
||||
//register(CompatModulePsi.class, "Psi");
|
||||
register(RecipesIC2.class, "IC2");
|
||||
}
|
||||
|
||||
public void registerCompact(Class<? extends ICompatModule> moduleClass, Object... objs) {
|
||||
boolean shouldLoad = ConfigTechReborn.config
|
||||
.get(ConfigTechReborn.CATEGORY_INTEGRATION, "Compat:" + moduleClass.getSimpleName(), true,
|
||||
"Should the " + moduleClass.getSimpleName() + " be loaded?")
|
||||
.getBoolean(true);
|
||||
if (ConfigTechReborn.config.hasChanged())
|
||||
ConfigTechReborn.config.save();
|
||||
if (!shouldLoad) {
|
||||
return;
|
||||
public void register(Class<? extends ICompatModule> moduleClass,Object... objs){
|
||||
registerCompact(moduleClass, true, objs);
|
||||
}
|
||||
|
||||
public void registerCompact(Class<? extends ICompatModule> moduleClass, boolean config, Object... objs) {
|
||||
boolean shouldLoad = true;
|
||||
if(config){
|
||||
shouldLoad = ConfigTechReborn.config
|
||||
.get(ConfigTechReborn.CATEGORY_INTEGRATION, "Compat:" + moduleClass.getSimpleName(), true,
|
||||
"Should the " + moduleClass.getSimpleName() + " be loaded?")
|
||||
.getBoolean(true);
|
||||
}
|
||||
for (Object obj : objs) {
|
||||
if (obj instanceof String) {
|
||||
|
@ -73,6 +75,13 @@ public class CompatManager {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if(config){
|
||||
if (ConfigTechReborn.config.hasChanged())
|
||||
ConfigTechReborn.config.save();
|
||||
if (!shouldLoad) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
try {
|
||||
compatModules.add(moduleClass.newInstance());
|
||||
} catch (InstantiationException e) {
|
||||
|
|
|
@ -448,10 +448,11 @@ public class ModRecipes {
|
|||
|
||||
boolean ore = data[0].equals("ore");
|
||||
Core.logHelper.debug("Ore: " + data[1]);
|
||||
ItemStack dust = getDictOreOrNull(joinDictName("dust", data[1]), ore ? 2 : 1).copy();
|
||||
ItemStack dust = getDictOreOrNull(joinDictName("dust", data[1]), ore ? 2 : 1);
|
||||
if (dust == null || dust.getItem() == null) {
|
||||
continue;
|
||||
}
|
||||
dust = dust.copy();
|
||||
dust.stackSize = 2;
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(oreStack, dust, ore ? 270 : 200, ore ? 31 : 22));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue