aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator
diff options
context:
space:
mode:
authorNotAPenguin <michiel.vandeginste@gmail.com>2024-04-16 20:04:46 +0200
committerGitHub <noreply@github.com>2024-04-16 20:04:46 +0200
commitae8473dc64d36f6b5b38e937189040480e37cb88 (patch)
tree691e28af42e89c5a655d19847b310b073cd7638b /src/main/java/goodgenerator
parent010a594f57c2a77c6b915dc0223b2c06a6a9732a (diff)
downloadGT5-Unofficial-ae8473dc64d36f6b5b38e937189040480e37cb88.tar.gz
GT5-Unofficial-ae8473dc64d36f6b5b38e937189040480e37cb88.tar.bz2
GT5-Unofficial-ae8473dc64d36f6b5b38e937189040480e37cb88.zip
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>
Diffstat (limited to 'src/main/java/goodgenerator')
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/ComponentAssemblyLine.java15
1 files changed, 15 insertions, 0 deletions
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
@@ -305,6 +305,21 @@ public class ComponentAssemblyLine extends GT_MetaTileEntity_ExtendedPowerMultiB
}
@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;
}