From ae8473dc64d36f6b5b38e937189040480e37cb88 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Tue, 16 Apr 2024 20:04:46 +0200 Subject: Allow wire cutter to toggle batch mode on Component Assembly line (#250) * Allow wire cutter to toggle batch mode on COAL * spotlessApply (#251) Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../blocks/tileEntity/ComponentAssemblyLine.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java') diff --git a/src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java b/src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java index 79a48ca14b..152ceb7839 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java @@ -304,6 +304,21 @@ public class ComponentAssemblyLine extends GT_MetaTileEntity_ExtendedPowerMultiB StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); } + @Override + public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer, + float aX, float aY, float aZ, ItemStack aTool) { + if (aPlayer.isSneaking()) { + batchMode = !batchMode; + if (batchMode) { + GT_Utility.sendChatToPlayer(aPlayer, "Batch recipes."); + } else { + GT_Utility.sendChatToPlayer(aPlayer, "Don't batch recipes."); + } + } + + return true; + } + @Override public boolean supportsInputSeparation() { return true; -- cgit