mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-10-25 20:32:29 +00:00
add fire spreading config
This commit is contained in:
1 parent
2e1794b484
commit
db3bb554b4
2 files changed
+8
-2
No files matched your search
@@ -90,7 +90,7 @@ public abstract class BlockFireBase extends BlockFire implements ITTinkererBlock
|
||||
}
|
||||
|
||||
public int tickRate(World p_149738_1_) {
|
||||
return 200;
|
||||
return ConfigHandler.enableFireMechanics ? 200 : 0x7ffffff0;
|
||||
}
|
||||
|
||||
public void setBlockWithTransmutationTarget(World world, int x, int y, int z, int meta, Block block) {
|
||||
@@ -104,7 +104,7 @@ public abstract class BlockFireBase extends BlockFire implements ITTinkererBlock
|
||||
|
||||
public void updateTick(World world, int x, int y, int z, Random rand) {
|
||||
|
||||
if (world.getGameRules().getGameRuleBooleanValue("doFireTick") && ConfigHandler.enableFire) {
|
||||
if (world.getGameRules().getGameRuleBooleanValue("doFireTick") && ConfigHandler.enableFire && ConfigHandler.enableFireMechanics) {
|
||||
|
||||
if (world.isRaining() && (world.canLightningStrikeAt(x, y, z) || world.canLightningStrikeAt(x - 1, y, z) || world.canLightningStrikeAt(x + 1, y, z) || world.canLightningStrikeAt(x, y, z - 1) || world.canLightningStrikeAt(x, y, z + 1))) {
|
||||
world.setBlockToAir(x, y, z);
|
||||
|
||||
@@ -46,6 +46,7 @@ public final class ConfigHandler {
|
||||
public static int bedrockDimensionID = 19;
|
||||
public static boolean enableCake = true;
|
||||
public static boolean enableFire = true;
|
||||
public static boolean enableFireMechanics = true;
|
||||
public static boolean cropsAllowBonemeal = true;
|
||||
|
||||
public static int potionFireId = 86;
|
||||
@@ -104,8 +105,13 @@ public final class ConfigHandler {
|
||||
useOreDictMetal = propOreDict.getBoolean(true);
|
||||
|
||||
Property propImbuedFire = config.get(Configuration.CATEGORY_GENERAL, "imbuedFire.enabled", true);
|
||||
propImbuedFire.comment = "Set to false to disable imbued fire.";
|
||||
enableFire = propImbuedFire.getBoolean(true);
|
||||
|
||||
Property propImbuedFireSpread = config.get(Configuration.CATEGORY_GENERAL, "imbuedFireSpread.enabled", true);
|
||||
propImbuedFireSpread.comment = "Set to false to disable imbued fire spreading/acting mechanism.";
|
||||
enableFireMechanics = propImbuedFireSpread.getBoolean(true);
|
||||
|
||||
Property propImbuedFireCake = config.get(Configuration.CATEGORY_GENERAL, "imbuedFire.cake.enabled", true);
|
||||
propImbuedFireCake.comment = "Set to false to disable imbued fire making cake. For those people who don't like cake";
|
||||
enableCake = propImbuedFireCake.getBoolean(true);
|
||||
|
||||
Reference in new issue
Block a user