zen-flow 16.1.0 → 16.2.0
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.d.ts +2 -2
- package/dist/zenflow.js +2 -1
- package/package.json +1 -1
package/dist/zenflow.d.ts
CHANGED
|
@@ -2460,14 +2460,14 @@ type RecipeResearch = {
|
|
|
2460
2460
|
/** Typically between 0 and 15 */
|
|
2461
2461
|
complexity: number;
|
|
2462
2462
|
/** Item ID */
|
|
2463
|
-
icon: string;
|
|
2463
|
+
icon: string | Texture;
|
|
2464
2464
|
};
|
|
2465
2465
|
/**
|
|
2466
2466
|
* Add [Research](https://thaumcraft-4.fandom.com/wiki/Research)
|
|
2467
2467
|
*
|
|
2468
2468
|
* Creates `tc.research_name.<id>` (title) and `tc.research_text.<id>` (tooltip) localization keys
|
|
2469
2469
|
*
|
|
2470
|
-
* **Note**: Requires pages, will crash otherwise
|
|
2470
|
+
* **Note**: Requires pages, will crash otherwise. Will also crash if `x` or `y` collides with existing research.
|
|
2471
2471
|
*
|
|
2472
2472
|
* @see https://minetweaker3.aizistral.com/wiki/ModTweaker:Thaumcraft_4_Support:Research
|
|
2473
2473
|
*/
|
package/dist/zenflow.js
CHANGED
|
@@ -1403,7 +1403,8 @@ const addResearch = (recipe$1) => {
|
|
|
1403
1403
|
recipe$1.x,
|
|
1404
1404
|
recipe$1.y,
|
|
1405
1405
|
recipe$1.complexity,
|
|
1406
|
-
recipe$1.icon
|
|
1406
|
+
typeof recipe$1.icon === "string" ? recipe$1.icon : literal(recipe$1.icon.domain),
|
|
1407
|
+
typeof recipe$1.icon !== "string" ? literal(recipe$1.icon.path) : void 0
|
|
1407
1408
|
);
|
|
1408
1409
|
return `mods.thaumcraft.Research.addResearch(${out});`;
|
|
1409
1410
|
};
|