mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Add config option to disable redstone activation for the faucet (#227)
Co-authored-by: ah-OOG-ah <[email protected]> Co-authored-by: Alexdoru <[email protected]>
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -24,6 +24,7 @@ import tconstruct.smeltery.logic.CastingBlockLogic;
|
||||
import tconstruct.smeltery.logic.CastingTableLogic;
|
||||
import tconstruct.smeltery.logic.FaucetLogic;
|
||||
import tconstruct.smeltery.model.CastingBlockRender;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
|
||||
public class SearedBlock extends InventoryBlock {
|
||||
|
||||
@@ -246,7 +247,7 @@ public class SearedBlock extends InventoryBlock {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if (!(te instanceof FaucetLogic logic)) return;
|
||||
// was it a low->high pulse
|
||||
if (!logic.hasRedstonePower && isPowered) {
|
||||
if (!logic.hasRedstonePower && isPowered && PHConstruct.redstoneFaucet) {
|
||||
logic.hasRedstonePower = true;
|
||||
logic.setActive(true);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,8 @@ public class PHConstruct {
|
||||
.getBoolean(true);
|
||||
denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false);
|
||||
craftEndstone = config.get("Difficulty Changes", "Allow creation of endstone", true).getBoolean(true);
|
||||
redstoneFaucet = config.get("Difficulty Changes", "Allow Faucets to be activated by Redstone", true)
|
||||
.getBoolean(true);
|
||||
alternativeBoltRecipe = config.get(
|
||||
"Difficulty Changes",
|
||||
"Add alternative recipe for bolt parts: arrowhead + toolrod in a crafting grid",
|
||||
@@ -487,6 +489,9 @@ public class PHConstruct {
|
||||
public static double ingotsPigironAlloy;
|
||||
|
||||
public static boolean craftEndstone;
|
||||
|
||||
public static boolean redstoneFaucet;
|
||||
|
||||
// Ultra Hardcore modifiers
|
||||
public static boolean enableHealthRegen;
|
||||
public static boolean goldAppleRecipe;
|
||||
|
||||
Reference in new issue
Block a user