From 0e7407d7bb6cf6dde1f26d36eaf9e76543412ca5 Mon Sep 17 00:00:00 2001 From: MCTian-mi <35869948+MCTian-mi@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:04:30 +0800 Subject: [PATCH] fix: some other DTs --- ...TileEntityHighPressureCryogenicDistillationPlant.java | 9 +++++++++ ...TileEntitySingleColumnCryogenicDistillationPlant.java | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityHighPressureCryogenicDistillationPlant.java b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityHighPressureCryogenicDistillationPlant.java index 9b08a0526..a690755e7 100644 --- a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityHighPressureCryogenicDistillationPlant.java +++ b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntityHighPressureCryogenicDistillationPlant.java @@ -1,5 +1,6 @@ package supersymmetry.common.metatileentities.multi.electric; +import gregtech.api.capability.impl.DistillationTowerLogicHandler; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; import gregtech.api.metatileentity.multiblock.IMultiblockPart; @@ -14,6 +15,7 @@ import net.minecraft.block.state.IBlockState; import net.minecraft.util.ResourceLocation; import org.jetbrains.annotations.NotNull; +import supersymmetry.api.capability.impl.ExtendedDTLogicHandler; import supersymmetry.api.metatileentity.multiblock.MetaTileEntityOrderedDT; import supersymmetry.api.recipes.SuSyRecipeMaps; import supersymmetry.client.renderer.textures.SusyTextures; @@ -62,6 +64,13 @@ protected BlockPattern createStructurePattern() { .build(); } + @Override + @NotNull + public DistillationTowerLogicHandler createHandler() { + return new ExtendedDTLogicHandler(this, 2, ignored -> 1); + } + + protected static IBlockState getCasingState() { return MetaBlocks.METAL_CASING.getState(MetalCasingType.ALUMINIUM_FROSTPROOF); } diff --git a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntitySingleColumnCryogenicDistillationPlant.java b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntitySingleColumnCryogenicDistillationPlant.java index 84ff0c4b4..2b523c186 100644 --- a/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntitySingleColumnCryogenicDistillationPlant.java +++ b/src/main/java/supersymmetry/common/metatileentities/multi/electric/MetaTileEntitySingleColumnCryogenicDistillationPlant.java @@ -1,5 +1,6 @@ package supersymmetry.common.metatileentities.multi.electric; +import gregtech.api.capability.impl.DistillationTowerLogicHandler; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; import gregtech.api.metatileentity.multiblock.IMultiblockPart; @@ -14,6 +15,7 @@ import net.minecraft.block.state.IBlockState; import net.minecraft.util.ResourceLocation; import org.jetbrains.annotations.NotNull; +import supersymmetry.api.capability.impl.ExtendedDTLogicHandler; import supersymmetry.api.metatileentity.multiblock.ICryogenicProvider; import supersymmetry.api.metatileentity.multiblock.ICryogenicReceiver; import supersymmetry.api.metatileentity.multiblock.MetaTileEntityOrderedDT; @@ -71,6 +73,12 @@ protected BlockPattern createStructurePattern() { .build(); } + @Override + @NotNull + public DistillationTowerLogicHandler createHandler() { + return new ExtendedDTLogicHandler(this, 2, ignored -> 1); + } + protected static IBlockState getCasingState() { return MetaBlocks.METAL_CASING.getState(MetalCasingType.ALUMINIUM_FROSTPROOF); }