special_tiles.[image|name]
parent
19f6bfa26d
commit
b671b66c81
19
init.lua
19
init.lua
|
@ -65,16 +65,29 @@ end
|
||||||
local function retex(name, thing)
|
local function retex(name, thing)
|
||||||
local success = false
|
local success = false
|
||||||
if thing.tiles then
|
if thing.tiles then
|
||||||
for face = 1,6 do
|
for face = 1, #thing.tiles do
|
||||||
if not thing.tiles[face] then break end
|
|
||||||
if thing.tiles[face].name then --animation
|
if thing.tiles[face].name then --animation
|
||||||
thing.tiles[face].name = prepareimage(thing.tiles[face].name)
|
thing.tiles[face].name = prepareimage(thing.tiles[face].name)
|
||||||
else
|
else
|
||||||
thing.tiles[face] = prepareimage(thing.tiles[face])
|
thing.tiles[face] = prepareimage(thing.tiles[face])
|
||||||
end
|
end
|
||||||
success = true
|
|
||||||
end
|
end
|
||||||
|
success = true
|
||||||
end
|
end
|
||||||
|
if thing.special_tiles then
|
||||||
|
for stile = 1, #thing.special_tiles do
|
||||||
|
--EEW
|
||||||
|
--default:water_flowing has special_tiles image
|
||||||
|
--default:water_source has special_tiles name
|
||||||
|
--Yuck!
|
||||||
|
if thing.special_tiles[stile].image then
|
||||||
|
thing.special_tiles[stile].image = prepareimage(thing.special_tiles[stile].image)
|
||||||
|
else
|
||||||
|
thing.special_tiles[stile].name = prepareimage(thing.special_tiles[stile].name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
success = true
|
||||||
|
end
|
||||||
if thing.inventory_image then
|
if thing.inventory_image then
|
||||||
thing.inventory_image = prepareimage(thing.inventory_image)
|
thing.inventory_image = prepareimage(thing.inventory_image)
|
||||||
success = true
|
success = true
|
||||||
|
|
Loading…
Reference in New Issue