undefined nodes with facedir or wallmounted are now stored with names

master
Sokomine 2014-09-25 18:36:14 +02:00
parent 51a744f3c1
commit fdeeca7ff0
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,6 @@ handle_schematics.analyze_mts_file = function( path )
scm[y][x][z] = c_ignore;
elseif( not( regnode )) then
scm[y][x][z] = { node = {
content = c_ignore,
name = nodenames[ id ],
param2 = p2} };
else
@ -150,10 +149,12 @@ handle_schematics.analyze_mts_file = function( path )
elseif( paramtype2 ~= 'facedir' and paramtype2 ~= 'wallmounted' ) then
scm[y][x][z] = { node = {
content = ids[ id ],
name = nodenames[ id ],
on_constr = true }};
else
scm[y][x][z] = { node = {
content = ids[ id ],
name = nodenames[ id ],
param2list = mg_villages.get_param2_rotated( paramtype2, p2 ),
on_constr = true }};
end