diff options
author | NotAPenguin <michiel.vandeginste@gmail.com> | 2024-04-16 20:04:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 20:04:31 +0200 |
commit | 95b52ba86ca816096e8168b65d030684530d95b1 (patch) | |
tree | 81225ba96223cbbe8a952b26e664934bbdec5e45 /src/main/java/gtPlusPlus/xmod/gregtech | |
parent | 87b8f7bf5c4a102ecb06b418fb03f6f09356e375 (diff) | |
download | GT5-Unofficial-95b52ba86ca816096e8168b65d030684530d95b1.tar.gz GT5-Unofficial-95b52ba86ca816096e8168b65d030684530d95b1.tar.bz2 GT5-Unofficial-95b52ba86ca816096e8168b65d030684530d95b1.zip |
Allow wire cutter to toggle batch mode on MABS (#868)
* Allow wire cutter to toggle batch mode on MABS
* Spotless apply for branch fix/tool-batch-mode for #868 (#869)
spotlessApply
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/gtPlusPlus/xmod/gregtech')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java index f8a67e345f..40a8b322b0 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java @@ -410,6 +410,21 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter } @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 int getPollutionPerSecond(ItemStack aStack) { return 102400; } |