Модуль:Entity Sprite: различия между версиями

мНет описания правки
мНет описания правки
Строка 31: Строка 31:
         local found = false
         local found = false
         for key, group in pairs(spriteGroups) do
         for key, group in pairs(spriteGroups) do
             if deepEqual(entry.Sprite, group[1].Sprite) and deepEqual(entry.EntityStorageVisuals, group[1].EntityStorageVisuals) then
             if deepEqual(entry.Sprite, group[1].Sprite) and
              deepEqual(entry.EntityStorageVisuals, group[1].EntityStorageVisuals) and
              deepEqual(entry.Icon, group[1].Icon) then
                 table.insert(group, entry)
                 table.insert(group, entry)
                 found = true
                 found = true
Строка 39: Строка 41:


         if not found then
         if not found then
             table.insert(spriteGroups, {entry})
             spriteGroups[entry.id] = {entry}
         end
         end
     end
     end