Skip to content

Commit 5b09010

Browse files
committed
Work around the "union type too complex to represent" error
1 parent 63fd260 commit 5b09010

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kubejs/server_scripts/server-constants.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,10 @@ global.server = Object.freeze({
352352
* @returns {this} The current instance.
353353
*/
354354
SequencedAssemblyBuilder.prototype.addDeployingStep = function (item) {
355-
this._steps.push(this._event.recipes.createDeploying(this._transitional, [this._transitional, item]));
355+
// Inputs extracted into its own variable to work around the "union type too complex to represent" error.
356+
/** @type {Internal.IngredientJS_} */
357+
const inputs = [this._transitional, item]
358+
this._steps.push(this._event.recipes.createDeploying(this._transitional, inputs));
356359
return this;
357360
};
358361

0 commit comments

Comments
 (0)