Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed Dec 21, 2024
2 parents bc6f34b + c6f6211 commit facdc3d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/main/java/gregtech/api/recipe/maps/SpaceProjectFrontend.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -85,19 +82,7 @@ protected List<String> handleNEIItemInputTooltip(List<String> 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);
Expand Down

0 comments on commit facdc3d

Please sign in to comment.