1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

refactor to work around LuaCoderAssist bug

This commit is contained in:
grilledham 2019-01-19 23:23:16 +00:00
parent 0927a839b8
commit a2369e6d62

View File

@ -926,7 +926,10 @@ local function do_magic_crafters()
if fluidbox_index then
local fb = entity.fluidbox
local fb_data = fb[fluidbox_index] or {name = data.item, amount = 0}
local fb_data = fb[fluidbox_index]
if not fb_data then
fb_data = {name = data.item, amount = 0}
end
fb_data.amount = fb_data.amount + fcount
fb[fluidbox_index] = fb_data
else