diff options
author | NotAPenguin <michiel.vandeginste@gmail.com> | 2024-04-16 20:04:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 20:04:46 +0200 |
commit | ae8473dc64d36f6b5b38e937189040480e37cb88 (patch) | |
tree | 691e28af42e89c5a655d19847b310b073cd7638b /src/main/java/goodgenerator | |
parent | 010a594f57c2a77c6b915dc0223b2c06a6a9732a (diff) | |
download | GT5-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.java | 15 |
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; } |