diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index 28a489e758..774cdb48cc 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -946,6 +946,10 @@ local function go_home(entity) if vector.distance(b,s) < 10 then entity.state = "stand" set_velocity(entity,0) + local n=minetest.get_node(b) + if n and n.name ~= "mcl_beds:bed_red_bottom" then + entity.bed=nil --bed is gone, make villager homeless + end end end