Changes on api and textures

This commit is contained in:
JoseDouglas26 2024-06-07 19:03:57 -03:00
parent fc2962c7c6
commit d5c474494a
1 changed files with 14 additions and 0 deletions

View File

@ -81,6 +81,20 @@ local function set_tiles(mod_name, identifier, definitions)
if not definitions.tiles then
definitions.tiles = {base_image_name}
else
if type(definitions.tiles) == "table" then
if definitions.tiles.type then
if definitions.tiles.type == "loglike" then
local top_base_image_name = base_image_name:gsub(".png", "_top.png")
definitions.tiles = {
top_base_image_name, top_base_image_name, base_image_name
}
end
end
else
return
end
end
end