From c6f621148169ac3b3b1e99638bd17e58015c6a82 Mon Sep 17 00:00:00 2001 From: Yoshy <60155833+Yoshy2002@users.noreply.github.com> Date: Sat, 21 Dec 2024 22:32:39 +0100 Subject: [PATCH] fix Space Project NEI GUI (#3687) --- .../api/recipe/maps/SpaceProjectFrontend.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/gregtech/api/recipe/maps/SpaceProjectFrontend.java b/src/main/java/gregtech/api/recipe/maps/SpaceProjectFrontend.java index 70c9605e1be..595ebbfc259 100644 --- a/src/main/java/gregtech/api/recipe/maps/SpaceProjectFrontend.java +++ b/src/main/java/gregtech/api/recipe/maps/SpaceProjectFrontend.java @@ -13,15 +13,12 @@ import com.gtnewhorizons.modularui.api.drawable.IDrawable; import com.gtnewhorizons.modularui.api.forge.IItemHandlerModifiable; -import com.gtnewhorizons.modularui.api.math.Alignment; import com.gtnewhorizons.modularui.api.math.Pos2d; import com.gtnewhorizons.modularui.api.screen.ModularWindow; import com.gtnewhorizons.modularui.common.widget.DrawableWidget; import com.gtnewhorizons.modularui.common.widget.ProgressBar; -import appeng.util.ReadableNumberConverter; import codechicken.lib.gui.GuiDraw; -import codechicken.nei.PositionedStack; import gregtech.api.gui.modularui.GTUITextures; import gregtech.api.recipe.BasicUIPropertiesBuilder; import gregtech.api.recipe.NEIRecipePropertiesBuilder; @@ -85,19 +82,7 @@ protected List handleNEIItemInputTooltip(List currentTip, @Override public void drawNEIOverlays(GTNEIDefaultHandler.CachedDefaultRecipe neiCachedRecipe) { - for (PositionedStack stack : neiCachedRecipe.mInputs) { - if (stack instanceof GTNEIDefaultHandler.FixedPositionedStack pStack && stack.item != null - && !pStack.isFluid()) { - int stackSize = ((GTNEIDefaultHandler.FixedPositionedStack) stack).realStackSize; - String displayString; - if (stack.item.stackSize > 9999) { - displayString = ReadableNumberConverter.INSTANCE.toWideReadableForm(stackSize); - } else { - displayString = String.valueOf(stackSize); - } - drawNEIOverlayText(displayString, stack, 0xffffff, 0.5f, true, Alignment.BottomRight); - } - } + super.drawNEIOverlays(neiCachedRecipe); if (neiCachedRecipe.mRecipe instanceof FakeSpaceProjectRecipe) { ISpaceProject project = SpaceProjectManager .getProject(((FakeSpaceProjectRecipe) neiCachedRecipe.mRecipe).projectName);