mg_villages.village_types can be nil
parent
2bac98db83
commit
8e1657c5df
|
@ -154,10 +154,12 @@ mg_villages.map_of_world = function( pname )
|
||||||
local i = 0.05;
|
local i = 0.05;
|
||||||
formspec = formspec.."label[10,-0.4;Village types:]";
|
formspec = formspec.."label[10,-0.4;Village types:]";
|
||||||
-- explain the meaning of the textures
|
-- explain the meaning of the textures
|
||||||
for _,typ in ipairs(mg_villages.village_types) do
|
if mg_villages.village_types ~= nil then
|
||||||
formspec = formspec.."label[10.5,"..tostring(i)..";"..tostring( typ ).."]"..
|
for _,typ in ipairs(mg_villages.village_types) do
|
||||||
"image[10.0,"..tostring(i+0.1)..";0.4,0.4;"..tostring( mg_villages.village_type_data[ typ ].texture ).."]";
|
formspec = formspec.."label[10.5,"..tostring(i)..";"..tostring( typ ).."]"..
|
||||||
i = i+0.45;
|
"image[10.0,"..tostring(i+0.1)..";0.4,0.4;"..tostring( mg_villages.village_type_data[ typ ].texture ).."]";
|
||||||
|
i = i+0.45;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
i = i+0.45;
|
i = i+0.45;
|
||||||
|
|
Loading…
Reference in New Issue