Very minor style cleaning

This commit is contained in:
Jean-Patrick Guerrero 2016-02-19 22:24:11 +01:00
parent 559e26d15d
commit cc6537e561

View File

@ -228,9 +228,11 @@ for node in pairs(minetest.registered_nodes) do
end
if def.tiles then
if #def.tiles > 1 and not def.drawtype:find("glass") then
if #def.tiles > 1 and not (def.drawtype:sub(1,5) == "glass") then
tiles = def.tiles
else tiles = {def.tiles[1]} end
else
tiles = {def.tiles[1]}
end
else
tiles = {def.tile_images[1]}
end