From 95b52ba86ca816096e8168b65d030684530d95b1 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Tue, 16 Apr 2024 20:04:31 +0200 Subject: [PATCH] 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> --- ...gTechMetaTileEntity_MegaAlloyBlastSmelter.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 f8a67e345..40a8b322b 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 @@ -409,6 +409,21 @@ public final void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPla } } + @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;