From 3724fbbcb67ee2566419654e31eb88eb5b7f88f6 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Sat, 22 Jun 2024 15:36:54 +0800 Subject: Refactors --- .../common/tileentities/machines/multiblock/CokeOven.java | 6 +++++- .../tileentities/machines/multiblock/DistillationTower.java | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'src/main/java/gregtech/common/tileentities/machines') diff --git a/src/main/java/gregtech/common/tileentities/machines/multiblock/CokeOven.java b/src/main/java/gregtech/common/tileentities/machines/multiblock/CokeOven.java index 06fc7b42b1..e8e31ba32c 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multiblock/CokeOven.java +++ b/src/main/java/gregtech/common/tileentities/machines/multiblock/CokeOven.java @@ -142,7 +142,11 @@ public class CokeOven extends Controller { @Override public String getLocalName() { - return StatCollector.translateToLocal("gt.multiBlock.controller.cokeOven"); + return StatCollector.translateToLocal(getTileEntityName()); + } + + public String getTileEntityName() { + return "gt.multitileentity.multiblock.cokeOven"; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multiblock/DistillationTower.java b/src/main/java/gregtech/common/tileentities/machines/multiblock/DistillationTower.java index 326bfcc9ee..a34246e045 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multiblock/DistillationTower.java +++ b/src/main/java/gregtech/common/tileentities/machines/multiblock/DistillationTower.java @@ -20,6 +20,7 @@ import gregtech.api.multitileentity.multiblock.base.StackableController; import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_StructureUtility; import gregtech.common.tileentities.machines.multiblock.logic.DistillationTowerProcessingLogic; +import net.minecraft.util.StatCollector; public class DistillationTower extends StackableController { @@ -158,9 +159,14 @@ public class DistillationTower extends StackableController