Skip to content

Commit

Permalink
fix(recipes): ✏️[Plastic Waste] recipe remove Liquid Dirt sub-product
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutoy242 committed Nov 2, 2024
1 parent 0f3ef4a commit 5900e19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/mods/rats.zs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ craft.remake(<rats:marbled_cheese_raw> * 9, ['pretty',

// Raw Plastic from squeeser
furnace.remove(<rats:raw_plastic>);
scripts.process.squeeze([<rats:plastic_waste>], <liquid:dirt> * 100, null, <rats:raw_plastic>);
scripts.process.squeeze([<rats:plastic_waste>], null, 'only: Squeezer MechanicalSqueezer TECentrifuge', <rats:raw_plastic>);

// Polyethene from rat plastic
mods.mekanism.enrichment.addRecipe(<rats:raw_plastic> * 16, <mekanism:polyethene>);
Expand Down
18 changes: 10 additions & 8 deletions scripts/processWork.zs
Original file line number Diff line number Diff line change
Expand Up @@ -883,15 +883,17 @@ function workEx(machineNameAnyCase as string, exceptionsAnyCase as string,
return machineName;
}

if (machineName == 'forestrysqueezer') {
// mods.forestry.Squeezer.addRecipe(ILiquidStack fluidOutput, IItemStack[] ingredients, int timePerItem, @Optional WeightedItemStack itemOutput);
var inputItemStacks = [] as IItemStack[];
for inIngr in inputItems {
inputItemStacks = inputItemStacks + inIngr.itemArray[0];
if (haveLiquidOutput) {
if (machineName == 'forestrysqueezer') {
// mods.forestry.Squeezer.addRecipe(ILiquidStack fluidOutput, IItemStack[] ingredients, int timePerItem, @Optional WeightedItemStack itemOutput);
var inputItemStacks = [] as IItemStack[];
for inIngr in inputItems {
inputItemStacks = inputItemStacks + inIngr.itemArray[0];
}
val wOut as WeightedItemStack = !isNull(outputItem0) ? outputItem0 % defaultChance0_int(extraChance, 20) : null;
mods.forestry.Squeezer.addRecipe(outputLiquid0, inputItemStacks, 20, wOut);
return machineName;
}
val wOut as WeightedItemStack = !isNull(outputItem0) ? outputItem0 % defaultChance0_int(extraChance, 20) : null;
mods.forestry.Squeezer.addRecipe(outputLiquid0, inputItemStacks, 20, wOut);
return machineName;
}
}

Expand Down

0 comments on commit 5900e19

Please sign in to comment.