Skip to content

Commit

Permalink
Remove unneeded override to addDisplayTest in DTs for a feature that …
Browse files Browse the repository at this point in the history
…has been broken for six years.
  • Loading branch information
Zorbatron committed Dec 27, 2024
1 parent 185bd5a commit 0764b24
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
import gregtech.api.recipes.Recipe;
import gregtech.api.recipes.RecipeMaps;
import gregtech.api.util.GTTransferUtils;
import gregtech.api.util.GTUtility;
import gregtech.api.util.RelativeDirection;
import gregtech.api.util.TextComponentUtil;
import gregtech.client.renderer.ICubeRenderer;
import gregtech.client.renderer.texture.Textures;
import gregtech.common.blocks.BlockMetalCasing.MetalCasingType;
Expand All @@ -28,15 +26,11 @@
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.function.Function;

import static gregtech.api.util.RelativeDirection.*;
Expand Down Expand Up @@ -86,22 +80,6 @@ public boolean allowsExtendedFacing() {
return false;
}

@Override
protected void addDisplayText(List<ITextComponent> textList) {
if (isStructureFormed()) {
FluidStack stackInTank = importFluids.drain(Integer.MAX_VALUE, false);
if (stackInTank != null && stackInTank.amount > 0) {
ITextComponent fluidName = TextComponentUtil.setColor(GTUtility.getFluidTranslation(stackInTank),
TextFormatting.AQUA);
textList.add(TextComponentUtil.translationWithColor(
TextFormatting.GRAY,
"gregtech.multiblock.distillation_tower.distilling_fluid",
fluidName));
}
}
super.addDisplayText(textList);
}

@Override
protected void formStructure(PatternMatchContext context) {
super.formStructure(context);
Expand Down

0 comments on commit 0764b24

Please sign in to comment.