zen-flow 2.1.1 → 2.1.2

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
@@ -145,9 +145,14 @@ const formatRecipe = (recipe) => {
145
145
  recipe.ring || recipe.corner || recipe[7],
146
146
  recipe.ring || recipe.edge || recipe[8],
147
147
  recipe.ring || recipe.corner || recipe[9]
148
- ]].map((row) => formatList(row.map(formatId)));
148
+ ]];
149
+ if (!matrix[0][2] && !matrix[1][2] && matrix[2].every((x) => !x)) {
150
+ matrix[0].splice(-1);
151
+ matrix[1].splice(-1);
152
+ matrix.splice(-1);
153
+ }
149
154
  return `[
150
- ${matrix.join(",\n ")}
155
+ ${matrix.map((row) => formatList(row.map(formatId))).join(",\n ")}
151
156
  ]`;
152
157
  };
153
158
  const formatArgs = (...args) => {
package/dist/zenflow.mjs CHANGED
@@ -141,9 +141,14 @@ const formatRecipe = (recipe) => {
141
141
  recipe.ring || recipe.corner || recipe[7],
142
142
  recipe.ring || recipe.edge || recipe[8],
143
143
  recipe.ring || recipe.corner || recipe[9]
144
- ]].map((row) => formatList(row.map(formatId)));
144
+ ]];
145
+ if (!matrix[0][2] && !matrix[1][2] && matrix[2].every((x) => !x)) {
146
+ matrix[0].splice(-1);
147
+ matrix[1].splice(-1);
148
+ matrix.splice(-1);
149
+ }
145
150
  return `[
146
- ${matrix.join(",\n ")}
151
+ ${matrix.map((row) => formatList(row.map(formatId))).join(",\n ")}
147
152
  ]`;
148
153
  };
149
154
  const formatArgs = (...args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",