satisfactory-json
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -124,3 +124,3 @@ "use strict"; | ||
} | ||
setVar(ctx, ref, result); | ||
setVar(ctx, ref, result.toString()); | ||
return true; | ||
@@ -127,0 +127,0 @@ }; |
@@ -57,3 +57,2 @@ "use strict"; | ||
if (error === undefined) { | ||
console.log('push data', error); | ||
_this.push(_this.transformationEngine.getSaveGame()); | ||
@@ -60,0 +59,0 @@ } |
@@ -13,2 +13,11 @@ "use strict"; | ||
builder | ||
// special case for berry bush InventoryStack, but when writing we need to break here already, so we don't write the None | ||
.if(function (ctx) { | ||
return !ctx.isLoading && | ||
ctx.obj[ctx.tmp._index].value.type === 'InventoryItem' && | ||
ctx.obj[ctx.tmp._index].value.properties != undefined && | ||
ctx.obj[ctx.tmp._index].value.properties.length === 0; | ||
}, function (builder) { | ||
builder.break(); | ||
}) | ||
.exec(function (ctx) { | ||
@@ -70,3 +79,3 @@ if (!ctx.isLoading) { | ||
if (ctx.tmp._extraObjectCount !== 0) { | ||
throw Error("Extra object count not zero, but " + ctx.tmp._extraObjectCount); | ||
console.error("Extra object count not zero, but " + ctx.tmp._extraObjectCount, ctx); | ||
} | ||
@@ -81,3 +90,3 @@ }) | ||
if (ctx.obj.missing !== '') { | ||
console.error('missing', ctx.obj.missing, ctx); | ||
console.error('Too much data in object: ', ctx.obj.missing, ctx); | ||
} | ||
@@ -84,0 +93,0 @@ }) |
@@ -14,2 +14,3 @@ "use strict"; | ||
var FluidBox_1 = require("./structs/FluidBox"); | ||
var SlateBrush_1 = require("./structs/SlateBrush"); | ||
function transformStructProperty(builder) { | ||
@@ -52,2 +53,3 @@ builder | ||
ResearchData: function (builder) { return ArbitraryStruct_1.transformArbitraryStruct(builder); }, | ||
SlateBrush: function (builder) { return SlateBrush_1.transformSlateBrush(builder); }, | ||
$default: function (builder) { | ||
@@ -54,0 +56,0 @@ return builder.error(function (ctx) { return "Unknown struct property: " + ctx.obj.type; }); |
@@ -46,3 +46,3 @@ { | ||
}, | ||
"version": "0.0.34" | ||
"version": "0.0.35" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272336
150
4255