fixed bug in one building and amount of beds

This commit is contained in:
Sokomine 2017-07-28 06:14:46 +02:00
parent 74eb79fd82
commit 6cbb3086a5
2 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@ mg_villages.add_building = function( building_data )
local paths = mg_villages.path_info[ building_data.short_file_name]; local paths = mg_villages.path_info[ building_data.short_file_name];
if( paths and paths[1] ) then if( paths and paths[1] ) then
for i,p in ipairs( paths[1] ) do for i,p in ipairs( paths[1] ) do
if( p and p[1]) then -- the last entry has a diffrent meaning
if( p and p[1] and i<#paths[1]) then
building_data.bed_list[i] = p[1]; building_data.bed_list[i] = p[1];
-- also store where the mob may stand -- also store where the mob may stand
if( p[2] ) then if( p[2] ) then

Binary file not shown.