mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Added a config option to disable thaumcraft infusion stabilizing because some people are sadists, apparently.
This commit is contained in:
1 parent
a9ba227055
commit
74862b3438
7 files changed
+15
-6
No files matched your search
@@ -28,6 +28,7 @@ import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.common.block.tile.TilePylon;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.item.block.ItemBlockWithMetadataAndName;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
@@ -111,6 +112,6 @@ public class BlockPylon extends BlockModContainer implements ILexiconable, IInfu
|
||||
}
|
||||
@Override
|
||||
public boolean canStabaliseInfusion(World world, int x, int y, int z) {
|
||||
return true;
|
||||
return ConfigHandler.enableThaumcraftStablizers;
|
||||
}
|
||||
}
|
||||
@@ -170,6 +170,6 @@ public class BlockFloatingFlower extends BlockModContainer implements ILexiconab
|
||||
|
||||
@Override
|
||||
public boolean canStabaliseInfusion(World world, int x, int y, int z) {
|
||||
return true;
|
||||
return ConfigHandler.enableThaumcraftStablizers;
|
||||
}
|
||||
}
|
||||
@@ -128,7 +128,7 @@ public class BlockModMushroom extends BlockMushroom implements IInfusionStabilis
|
||||
|
||||
@Override
|
||||
public boolean canStabaliseInfusion(World world, int x, int y, int z) {
|
||||
return true;
|
||||
return ConfigHandler.enableThaumcraftStablizers;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -71,7 +71,7 @@ public class BlockShinyFlower extends BlockModFlower implements IInfusionStabili
|
||||
|
||||
@Override
|
||||
public boolean canStabaliseInfusion(World world, int x, int y, int z) {
|
||||
return true;
|
||||
return ConfigHandler.enableThaumcraftStablizers;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -88,6 +88,8 @@ public final class ConfigHandler {
|
||||
public static boolean ringOfOdinFireResist = true;
|
||||
public static boolean enderStuff19Enabled = true;
|
||||
public static boolean invertMagnetRing = false;
|
||||
public static boolean enableThaumcraftStablizers = true;
|
||||
|
||||
public static int harvestLevelWeight = 2;
|
||||
public static int harvestLevelBore = 3;
|
||||
|
||||
@@ -247,6 +249,9 @@ public final class ConfigHandler {
|
||||
desc = "Set this to true to invert the Ring of Magnetization's controls (from shift to stop to shift to work)";
|
||||
invertMagnetRing = loadPropBool("magnetRing.invert", desc, invertMagnetRing);
|
||||
|
||||
desc = "Set this to false to disable Thaumcraft Infusion Stabilizing in botania blocks";
|
||||
enableThaumcraftStablizers = loadPropBool("thaumraftStabilizers.enabled", desc, enableThaumcraftStablizers);
|
||||
|
||||
desc = "The harvest level of the Mana Lens: Weight. 3 is diamond level. Defaults to 2 (iron level)";
|
||||
harvestLevelWeight = loadPropInt("harvestLevel.weightLens", desc, harvestLevelWeight);
|
||||
|
||||
|
||||
@@ -1100,7 +1100,10 @@ public final class LexiconData {
|
||||
|
||||
if(Botania.thaumcraftLoaded) {
|
||||
tcIntegration = new CLexiconEntry(LibLexicon.MISC_TC_INTEGRATION, BotaniaAPI.categoryMisc, "Thaumcraft");
|
||||
tcIntegration.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeHelmetOfRevealing), new PageText("3"), new PageManaInfusionRecipe("4", ModManaInfusionRecipes.manaInkwellRecipe), new PageText("5"), new PageBrew(ModBrewRecipes.warpWardBrew, "6a", "6b")).setIcon(new ItemStack(ModItems.manaInkwell));
|
||||
|
||||
if(ConfigHandler.enableThaumcraftStablizers)
|
||||
tcIntegration.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeHelmetOfRevealing), new PageText("3"), new PageManaInfusionRecipe("4", ModManaInfusionRecipes.manaInkwellRecipe), new PageText("5"), new PageBrew(ModBrewRecipes.warpWardBrew, "6a", "6b")).setIcon(new ItemStack(ModItems.manaInkwell));
|
||||
else tcIntegration.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeHelmetOfRevealing), new PageText("3"), new PageManaInfusionRecipe("4", ModManaInfusionRecipes.manaInkwellRecipe), new PageBrew(ModBrewRecipes.warpWardBrew, "6a", "6b")).setIcon(new ItemStack(ModItems.manaInkwell));
|
||||
}
|
||||
|
||||
if(Botania.etFuturumLoaded) {
|
||||
|
||||
Reference in new issue
Block a user