diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 422857de48..8d385d040f 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3201,7 +3201,6 @@ function mcl_mobs:gopath(self,target,callback_arrived) local d = minetest.find_node_near(target,16,{"group:door"}) if d then --mcl_log("Found a door near") - local up_one = vector.new(0,1,0) for _,v in pairs(plane_adjacents) do local pos = vector.add(d,v) @@ -3212,8 +3211,6 @@ function mcl_mobs:gopath(self,target,callback_arrived) mcl_log("Found a path to next to door".. minetest.pos_to_string(pos)) local other_side_of_door = vector.add(d,-v) mcl_log("Opposite is: ".. minetest.pos_to_string(other_side_of_door)) - --other_side_of_door = vector.add(other_side_of_door, up_one) - --mcl_log("Opposite 2 is: ".. minetest.pos_to_string(other_side_of_door)) table.insert(wp, other_side_of_door) break diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index a6f21b83bc..336221a17b 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -579,9 +579,9 @@ function get_activity(tod) local lunch_start = 12000 - local lunch_end = 12500 - local work_start = 6500 - local work_end = 18000 + local lunch_end = 13500 + local work_start = 8500 + local work_end = 16500 local activity = nil