forked from VoxeLibre/VoxeLibre
Changes on api and textures
This commit is contained in:
parent
fc2962c7c6
commit
d5c474494a
|
@ -81,6 +81,20 @@ local function set_tiles(mod_name, identifier, definitions)
|
||||||
|
|
||||||
if not definitions.tiles then
|
if not definitions.tiles then
|
||||||
definitions.tiles = {base_image_name}
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue