From 790ce9fe5a5862888d85314d7c09bd975f85d278 Mon Sep 17 00:00:00 2001 From: Daniel Mendes <70096037+Steelux8@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:48:04 +0100 Subject: 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> --- src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/gtPlusPlus/api') 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)), -- cgit