1
0
Fork 0

Fix villager work times

This commit is contained in:
ancientmarinerdev 2022-10-26 00:17:29 +01:00
parent eebea4a7a9
commit f8ee473383
2 changed files with 3 additions and 6 deletions

View File

@ -3201,7 +3201,6 @@ function mcl_mobs:gopath(self,target,callback_arrived)
local d = minetest.find_node_near(target,16,{"group:door"}) local d = minetest.find_node_near(target,16,{"group:door"})
if d then if d then
--mcl_log("Found a door near") --mcl_log("Found a door near")
local up_one = vector.new(0,1,0)
for _,v in pairs(plane_adjacents) do for _,v in pairs(plane_adjacents) do
local pos = vector.add(d,v) 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)) mcl_log("Found a path to next to door".. minetest.pos_to_string(pos))
local other_side_of_door = vector.add(d,-v) local other_side_of_door = vector.add(d,-v)
mcl_log("Opposite is: ".. minetest.pos_to_string(other_side_of_door)) 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) table.insert(wp, other_side_of_door)
break break

View File

@ -579,9 +579,9 @@ function get_activity(tod)
local lunch_start = 12000 local lunch_start = 12000
local lunch_end = 12500 local lunch_end = 13500
local work_start = 6500 local work_start = 8500
local work_end = 18000 local work_end = 16500
local activity = nil local activity = nil