aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations
diff options
context:
space:
mode:
authorMary <33456283+FourIsTheNumber@users.noreply.github.com>2024-07-24 21:14:45 -0400
committerGitHub <noreply@github.com>2024-07-25 08:14:45 +0700
commit5045736c2df49b6214c63dc78edff258ed39de0e (patch)
treed8bd169866706365a7b832756ca737d60450bbc0 /src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations
parente53b6c05521f399312502c21bd29bd0f0479aa8b (diff)
downloadGT5-Unofficial-5045736c2df49b6214c63dc78edff258ed39de0e.tar.gz
GT5-Unofficial-5045736c2df49b6214c63dc78edff258ed39de0e.tar.bz2
GT5-Unofficial-5045736c2df49b6214c63dc78edff258ed39de0e.zip
Update multi-machines to display running mode in GUI (#2755)
* Framework for mode text in gui * Add getMachineModeName to all multimachines * Changed lang file for MFE because "Electromagnetic Polarizer" and "Electromagnetic Separator" are too long and make the GUI look bad * Removed leftover code * Removed more leftover code... oops * Moved logic to base class and made mode switch chat message localizable * Merge caused spotless to fail, I guess * Reverted logic from parent class * ahhhh spotless
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
index e19a25981d..491f696c43 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
@@ -858,6 +858,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
super.onScrewdriverRightClick(side, aPlayer, aX, aY, aZ);
clearRecipeMapForAllInputHatches();
onModeChangeByScrewdriver(side, aPlayer, aX, aY, aZ);
+ mLastRecipe = null;
resetRecipeMapForAllInputHatches();
}