From c7c9a072d3673a42c4b4bb0ad14efab21c2ffb22 Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Sat, 11 May 2024 00:05:37 +0200 Subject: [PATCH] update + sa --- dependencies.gradle | 6 ++-- .../beamline/TargetChamberFrontend.java | 28 +++++++++++-------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 43c09a2..d498ee8 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,8 +1,8 @@ // Add your dependencies here dependencies { - api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.05:dev') - implementation('com.github.GTNewHorizons:GTplusplus:1.12.2:dev') - implementation('com.github.GTNewHorizons:GoodGenerator:0.9.1:dev') + api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.09:dev') + implementation('com.github.GTNewHorizons:GTplusplus:1.12.7:dev') + implementation('com.github.GTNewHorizons:GoodGenerator:0.9.3:dev') implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.4.5:dev') } diff --git a/src/main/java/com/elisis/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java b/src/main/java/com/elisis/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java index 8cb5d66..dc9de1e 100644 --- a/src/main/java/com/elisis/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java +++ b/src/main/java/com/elisis/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java @@ -4,6 +4,9 @@ import java.util.List; +import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.StatCollector; + import com.elisis.gtnhlanth.util.Util; import com.gtnewhorizons.modularui.api.math.Pos2d; @@ -15,8 +18,6 @@ import gregtech.common.gui.modularui.UIHelper; import gregtech.nei.GT_NEI_DefaultHandler; import gregtech.nei.RecipeDisplayInfo; -import net.minecraft.util.EnumChatFormatting; -import net.minecraft.util.StatCollector; public class TargetChamberFrontend extends RecipeMapFrontend { @@ -32,22 +33,27 @@ public void drawDescription(RecipeDisplayInfo recipeInfo) { drawMetadataInfo(recipeInfo); drawRecipeOwnerInfo(recipeInfo); } - + @Override protected void drawNEIOverlayForInput(GT_NEI_DefaultHandler.FixedPositionedStack stack) { - if (stack.isNotConsumed()) { // The stack actually takes damage, but is technically still not considered to be consumed by the code - drawNEIOverlayText("PC", stack); - } + if (stack.isNotConsumed()) { // The stack actually takes damage, but is technically still not considered to be + // consumed by the code + drawNEIOverlayText("PC", stack); + } } - + @Override protected List handleNEIItemInputTooltip(List currentTip, GT_NEI_DefaultHandler.FixedPositionedStack pStack) { - if (pStack.isNotConsumed()) { // See above - currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("gtnhlanth.tt.pc")); // Partially consumed: Takes damage in the process - } - return currentTip; + if (pStack.isNotConsumed()) { // See above + currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("gtnhlanth.tt.pc")); // Partially + // consumed: + // Takes damage + // in the + // process } + return currentTip; + } @Override public void drawEnergyInfo(RecipeDisplayInfo recipeInfo) {