Skip to content

Commit

Permalink
fix migration for items which don't exist anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
judos committed Jun 8, 2017
1 parent 766da84 commit f9d143c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/control/belt-sorter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ beltSorter.migrateData40 = function()
for row = 1,4 do
data.guiFilter[row] = row
end
for row=1,4 do
for slot=1,4 do
local name = data.guiFilter[row.."."..slot]
if name ~= nil and game.item_prototypes[name] == nil then
data.guiFilter[row.."."..slot] = nil
end
end
end
if data.lvl == 1 then
local problem = ""
local side = {"up","left","right","down"}
Expand Down

0 comments on commit f9d143c

Please sign in to comment.