mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-11 21:34:52 +09:00
.
This commit is contained in:
1 parent
c5591ab509
commit
6406f71724
1 file changed
+1
-5
@@ -279,11 +279,7 @@ function main.parse(expression)
|
||||
return value
|
||||
end)
|
||||
|
||||
if not ok then
|
||||
return type(result) == 'table' and result or {'calc.error', tostring(result)}
|
||||
end
|
||||
|
||||
return result
|
||||
return ok and result or (type(result) == 'table' and result or {'calc.error', tostring(result)})
|
||||
end
|
||||
|
||||
function main.change(event)
|
||||
|
||||
Reference in new issue
Block a user