From 0.18.19, sprite and animation definitions with empty layers will add warning (prefixed with "DATA WARNING" so you can search for it) to logs.
From 0.18.20, the game will fail to load with an error, even if for optional sprites. If sprite/animation is optional, just set it to nil, don't make it a table of empty layers.
Code: Select all
-- this won't be allowed
optional_picture = { layers = {} }
-- instead of that do
optional_picture = nil
Code: Select all
picture = { filename = "__core__/graphics/empty.png", size = 1 }