added support for tile_images in node definition in preview

master
Sokomine 2015-05-01 18:16:31 +02:00
parent dd04f9c510
commit e7fc41d1ef
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ build_chest.preview_image_draw_tile = function( content_id, image, x, z, dx, dz,
return '';
end
local tiles = node_def.tiles;
if( not( tiles )) then
tiles = node_def.tile_images;
end
local tile = nil;
if( tiles ~= nil ) then
if( not(tile_nr) or tile_nr > #tiles or tile_nr < 1 ) then