smart_sfinv_creative: move hardcoded stairs and slabs to the stairs group

This commit is contained in:
Alexander Weber 2018-09-12 20:12:13 +02:00
parent e46cf78a30
commit 8341b56288

View File

@ -40,6 +40,13 @@ end
-- Get group assignment for item
------------------------------------------------------------------------
local function get_group_assingment(def)
-- Order all stairs and slabs to the stairs group
if def.groups.stair or def.groups.slab then
return "stairs"
end
-- Group by mod origin by default
return def.mod_origin
end