zen-flow 2.8.2 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zenflow.cjs CHANGED
@@ -255,7 +255,7 @@ const addFermenterFuel = (recipe) => {
255
255
  const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
256
256
  const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
257
257
  const addSqueezer = (recipe) => {
258
- const out = formatArgs(formatStack(recipe.out), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
258
+ const out = formatArgs(formatStack(recipe.out), formatStack(recipe.bonus), toArray(recipe.in).map(formatIngredient), recipe.ticks);
259
259
  return `mods.forestry.Squeezer.addRecipe(${out});`;
260
260
  };
261
261
  const removeSqueezer = (recipe) => {
package/dist/zenflow.d.ts CHANGED
@@ -202,9 +202,9 @@ declare type RecipeFermenterFuel = {
202
202
  };
203
203
  declare type RecipeSqueezer = {
204
204
  out: Stack;
205
- in: Ingredient[];
206
- bonus: Ingredient;
205
+ in: Ingredient | Ingredient[];
207
206
  ticks: number;
207
+ bonus: Stack;
208
208
  };
209
209
  declare type RecipeStill = {
210
210
  in: Stack;
@@ -231,6 +231,9 @@ declare const removeFermenter: (id: string) => string;
231
231
  declare const addFermenterFuel: (recipe: RecipeFermenterFuel) => string;
232
232
  declare const removeFermenterFuel: (id: string) => string;
233
233
  declare const removeMoistener: (id: string) => string;
234
+ /**
235
+ * @param recipe.bonus - Unfortunately `bonus` is required as optional is not supported by ModTweaker
236
+ */
234
237
  declare const addSqueezer: (recipe: RecipeSqueezer) => string;
235
238
  /**
236
239
  * Remove Forestry Squeezer recipe
@@ -383,6 +386,11 @@ declare const removeInsolator: (left: Ingredient, right: Ingredient) => string;
383
386
  */
384
387
  declare const addPulverizer: (recipe: RecipePulverizer) => string;
385
388
  declare const removePulverizer: (id: string) => string;
389
+ /**
390
+ * Common values:
391
+ * - Log: `800RF`
392
+ * - Tools: `1600RF`
393
+ */
386
394
  declare const addSawmill: (recipe: RecipeSawmill) => string;
387
395
  declare const removeSawmill: (id: string) => string;
388
396
  /**
package/dist/zenflow.mjs CHANGED
@@ -251,7 +251,7 @@ const addFermenterFuel = (recipe) => {
251
251
  const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
252
252
  const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
253
253
  const addSqueezer = (recipe) => {
254
- const out = formatArgs(formatStack(recipe.out), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
254
+ const out = formatArgs(formatStack(recipe.out), formatStack(recipe.bonus), toArray(recipe.in).map(formatIngredient), recipe.ticks);
255
255
  return `mods.forestry.Squeezer.addRecipe(${out});`;
256
256
  };
257
257
  const removeSqueezer = (recipe) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",