OD27 fork of 5Dim's mod - New Core


Core for OD27 fork of 5Dim's mod Core, library and settings of OD27 fork of 5Dim's mod. REQUIRED for any other module

Content
10 months ago
1.1
5.83K

g string/number comparison

7 months ago

Recommend checking item.stack_size type for == 'number' in data-final-fixes:7 as some things cause it to throw with a string vs number comparison as it's technically valid for Factorio to have stack_size as a string instead of a number...

I just modified my local copy to be [[[if (type(item.stack_size) == 'number' and item.stack_size > 1) then]]] and there's no issue (though you could also parse to number and then compare)

New response