diff --git a/buildings.lua b/buildings.lua index 10364c1..590efed 100644 --- a/buildings.lua +++ b/buildings.lua @@ -380,7 +380,8 @@ mg_villages.add_building = function( building_data ) local paths = mg_villages.path_info[ building_data.short_file_name]; if( paths and paths[1] ) then 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]; -- also store where the mob may stand if( p[2] ) then diff --git a/schems/lumberjack_church_1.mts b/schems/lumberjack_church_1.mts index 6d8f27b..744fa70 100644 Binary files a/schems/lumberjack_church_1.mts and b/schems/lumberjack_church_1.mts differ