Skip to content

Commit

Permalink
Merge pull request #392 from trainvoi/fix-vacuum-dt
Browse files Browse the repository at this point in the history
fix Vacuum DT not being able to overclock
  • Loading branch information
trainvoi authored Feb 27, 2025
2 parents f68f589 + 6204637 commit 3a9a2da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ public abstract class MetaTileEntityOrderedDT extends RecipeMapMultiblockControl

protected DistillationTowerLogicHandler handler;

public MetaTileEntityOrderedDT(ResourceLocation metaTileEntityId, RecipeMap<?> recipeMap) {
public MetaTileEntityOrderedDT(ResourceLocation metaTileEntityId, RecipeMap<?> recipeMap, boolean hasPerfectOC) {
super(metaTileEntityId, recipeMap);
this.handler = createHandler();
this.recipeMapWorkable = new DistillationTowerRecipeLogic(this);
this.recipeMapWorkable = new DistillationTowerRecipeLogic(this, hasPerfectOC);
}

public MetaTileEntityOrderedDT(ResourceLocation metaTileEntityId, RecipeMap<?> recipeMap) {
this(metaTileEntityId, recipeMap, false);
}

@NotNull
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package supersymmetry.common.metatileentities.multi.electric;

import gregtech.api.capability.impl.DistillationTowerLogicHandler;
import gregtech.api.capability.impl.MultiblockRecipeLogic;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.interfaces.IGregTechTileEntity;
import gregtech.api.metatileentity.multiblock.IMultiblockPart;
Expand All @@ -26,6 +27,7 @@
import supersymmetry.api.metatileentity.multiblock.MetaTileEntityOrderedDT;
import supersymmetry.api.recipes.SuSyRecipeMaps;
import supersymmetry.client.renderer.textures.SusyTextures;
import supersymmetry.common.recipes.DistillationTowerRecipeLogic;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -36,7 +38,7 @@
public class MetaTileEntityVacuumDistillationTower extends MetaTileEntityOrderedDT {

public MetaTileEntityVacuumDistillationTower(ResourceLocation metaTileEntityId) {
super(metaTileEntityId, SuSyRecipeMaps.VACUUM_DISTILLATION_RECIPES);
super(metaTileEntityId, SuSyRecipeMaps.VACUUM_DISTILLATION_RECIPES, true);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public DistillationTowerRecipeLogic(RecipeMapMultiblockController tileEntity) {
super(tileEntity);
}

public DistillationTowerRecipeLogic(RecipeMapMultiblockController tileEntity, boolean hasPerfectOC) {
super(tileEntity, hasPerfectOC);
}

@Override
protected void outputRecipeOutputs() {
GTTransferUtils.addItemsToItemHandler(getOutputInventory(), false, itemOutputs);
Expand Down

0 comments on commit 3a9a2da

Please sign in to comment.