@@ -65,7 +65,7 @@ public abstract class WorkableTieredMachine extends TieredEnergyMachine implemen
6565 protected boolean previouslyMuffled = true ;
6666
6767 public WorkableTieredMachine (BlockEntityCreationInfo info , int tier , Function <WorkableTieredMachine , RecipeLogic > recipeLogicSupplier , int importSlots , int exportSlots ,
68- int fluidImportSlots , int fluidExportSlots , int fluidImportTankSize , int fluidExportTankSize ) {
68+ int fluidImportSlots , int fluidExportSlots , Int2IntFunction tankScalingFunction ) {
6969 super (info , tier );
7070 this .overclockTier = getMaxOverclockTier ();
7171 this .recipeTypes = getDefinition ().getRecipeTypes ();
@@ -76,8 +76,8 @@ public WorkableTieredMachine(BlockEntityCreationInfo info, int tier, Function<Wo
7676 this .recipeLogic = recipeLogicSupplier .apply (this );
7777 this .importItems = new NotifiableItemStackHandler (this , importSlots , IO .IN );
7878 this .exportItems = new NotifiableItemStackHandler (this , exportSlots , IO .OUT );
79- this .importFluids = new NotifiableFluidTank (this , fluidImportSlots , fluidImportTankSize , IO .IN );
80- this .exportFluids = new NotifiableFluidTank (this , fluidExportSlots , fluidExportTankSize , IO .OUT );
79+ this .importFluids = new NotifiableFluidTank (this , fluidImportSlots , tankScalingFunction . applyAsInt ( getTier ()) , IO .IN );
80+ this .exportFluids = new NotifiableFluidTank (this , fluidExportSlots , tankScalingFunction . applyAsInt ( getTier ()) , IO .OUT );
8181 this .importComputation = new NotifiableComputationContainer (this , IO .IN , true );
8282 this .exportComputation = new NotifiableComputationContainer (this , IO .OUT , false );
8383 }
0 commit comments