aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus
diff options
context:
space:
mode:
authorStaffiX <32968022+StaffiX@users.noreply.github.com>2024-11-12 00:26:46 +0100
committerGitHub <noreply@github.com>2024-11-11 23:26:46 +0000
commit4076d88e21bcba9c08519d5557b9589263e2fdbc (patch)
treed65046933ecbae1cd93ae7986b01bcddc13a75d2 /src/main/java/gtPlusPlus
parent061ce4a305b31acde70b97baf054dd79e74f42ee (diff)
downloadGT5-Unofficial-4076d88e21bcba9c08519d5557b9589263e2fdbc.tar.gz
GT5-Unofficial-4076d88e21bcba9c08519d5557b9589263e2fdbc.tar.bz2
GT5-Unofficial-4076d88e21bcba9c08519d5557b9589263e2fdbc.zip
Add tool batch mode for some multis (#3475)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gtPlusPlus')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/MTEQuantumForceTransformer.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/MTEMegaAlloyBlastSmelter.java15
2 files changed, 18 insertions, 9 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/MTEQuantumForceTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/MTEQuantumForceTransformer.java
index 4d1a55a7bb..35c09be046 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/MTEQuantumForceTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/MTEQuantumForceTransformer.java
@@ -936,4 +936,16 @@ public class MTEQuantumForceTransformer extends MTEExtendedPowerMultiBlockBase<M
protected SoundResource getActivitySoundLoop() {
return SoundResource.GT_MACHINES_QUANTUM_FORCE_TRANSFORMER_LOOP;
}
+
+ @Override
+ public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
+ float aX, float aY, float aZ) {
+ batchMode = !batchMode;
+ if (batchMode) {
+ GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOn"));
+ } else {
+ GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOff"));
+ }
+ return true;
+ }
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/MTEMegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/MTEMegaAlloyBlastSmelter.java
index 526883aa29..61b9f237ed 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/MTEMegaAlloyBlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/MTEMegaAlloyBlastSmelter.java
@@ -426,16 +426,13 @@ public class MTEMegaAlloyBlastSmelter extends MTEExtendedPowerMultiBlockBase<MTE
@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) {
- GTUtility.sendChatToPlayer(aPlayer, "Batch recipes.");
- } else {
- GTUtility.sendChatToPlayer(aPlayer, "Don't batch recipes.");
- }
+ float aX, float aY, float aZ) {
+ batchMode = !batchMode;
+ if (batchMode) {
+ GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOn"));
+ } else {
+ GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOff"));
}
-
return true;
}