diff options
author | Daniel Mendes <70096037+Steelux8@users.noreply.github.com> | 2024-07-26 11:48:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 11:48:04 +0100 |
commit | 790ce9fe5a5862888d85314d7c09bd975f85d278 (patch) | |
tree | 9d8d81dcfe92279b892e83f289c5100b1d3e26b3 /src/main/java/gtPlusPlus/api | |
parent | 2d09c1d5693de31bb500752a8dcc9074acecbd73 (diff) | |
download | GT5-Unofficial-790ce9fe5a5862888d85314d7c09bd975f85d278.tar.gz GT5-Unofficial-790ce9fe5a5862888d85314d7c09bd975f85d278.tar.bz2 GT5-Unofficial-790ce9fe5a5862888d85314d7c09bd975f85d278.zip |
Remove Cell Chemistry in LFTR and Fix Recipe Tooltip (#2768)
* Add LCR recipes and fix ZnF4 output
-> Added LCR equivalents to some Dehydrator recipes that forced cell chemistry, to avoid the cell usage;
-> Fix one recipe that wasn't outputting Zirconium Tetrafluoride correctly.
* LFTR recipe tooltip fix
-> Fix the display of energy generation in LFTR recipes, which showed 0 for all recipes due to a mistake in the metadata used.
* Spotless apply for branch LFTR_Quick_Fixes for #2768 (#2769)
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/api')
-rw-r--r-- | src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java index d2171d1bdd..1000a03523 100644 --- a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java +++ b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java @@ -1,5 +1,7 @@ package gtPlusPlus.api.recipe; +import static gregtech.api.util.GT_RecipeConstants.LFTR_OUTPUT_POWER; + import java.util.Arrays; import java.util.Collections; @@ -74,7 +76,7 @@ public class GTPPRecipeMaps { .minInputs(0, 2) .frontend(FluidOnlyFrontend::new) .neiSpecialInfoFormatter(recipeInfo -> { - final long eut = recipeInfo.recipe.mSpecialValue; + final long eut = recipeInfo.recipe.getMetadataOrDefault(LFTR_OUTPUT_POWER, 0); final int duration = recipeInfo.recipe.mDuration; return Arrays.asList( StatCollector.translateToLocalFormatted("gtpp.nei.lftr.power", GT_Utility.formatNumbers(eut)), |