Skip to content

Commit

Permalink
fix problem printed for all beltSorters, even if no problem
Browse files Browse the repository at this point in the history
  • Loading branch information
judos committed Jun 8, 2017
1 parent f9d143c commit 455e582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/control/belt-sorter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ beltSorter.migrateData40 = function()
end
end
if data.lvl == 1 then
local problem = ""
local problem = nil
local side = {"up","left","right","down"}
for row=1,4 do
for slot=3,4 do --old slots no longer available
if data.guiFilter[row.."."..slot] ~= nil then
if not problem then problem = "" end
problem = problem .. data.guiFilter[row.."."..slot].."("..side[row]..") ,"
end
end
Expand Down

0 comments on commit 455e582

Please sign in to comment.