Модуль:Entity Sprite: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 75: | Строка 75: | ||
local tags = params.Tags or "" | local tags = params.Tags or "" | ||
local licensing = params.Licensing or "CC-BY-SA-3.0" | local licensing = params.Licensing or "CC-BY-SA-3.0" | ||
if not entry.id or not entry.Sprite or not entry.Sprite.sprite then | |||
return nil | |||
end | |||
if not path or path == "" then | if not path or path == "" then | ||
path = "Resources/Textures/" .. entry.Sprite.sprite | path = "Resources/Textures/" .. entry.Sprite.sprite | ||
end | end | ||