Fixed up broken time

This commit is contained in:
Joshua Barretto 2022-08-14 16:21:24 +01:00
parent e08f7d4fa9
commit bccbbfa3b9

View File

@ -140,7 +140,7 @@ impl Rule for NpcAi {
npc.target = None;
}
} else {
npc.target = path_town(npc.wpos, home_id, ctx.index, ctx.event.time, npc.seed);
npc.target = path_town(npc.wpos, home_id, ctx.index, ctx.event.time.0, npc.seed);
}
} else {
// TODO: Don't make homeless people walk around in circles