From 939181284b7d07b11996e67bca88b6dd2bf2d6d2 Mon Sep 17 00:00:00 2001 From: Hector Franqui Date: Fri, 1 Sep 2017 14:14:35 -0400 Subject: [PATCH] Spawner: Add workplaces properly to the usable nodes. --- spawner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawner.lua b/spawner.lua index 5f67be9..637a48f 100644 --- a/spawner.lua +++ b/spawner.lua @@ -506,7 +506,7 @@ function npc.spawner.assign_places(self, entrance, node_data, pos) if node_data.workplace_type[i].occupation and node_data.workplace_type[i].occupation == self.occupation_name then -- Found the node. Assign only this node to the NPC. - npc.places.add_shared_accessible_place(self, node_data.workplace_type[i], + npc.places.add_shared_accessible_place(self, {node_data.workplace_type[i]}, npc.places.PLACE_TYPE.WORKPLACE.PRIMARY) -- Edit metadata of this workplace node to not allow it for other NPCs local meta = minetest.get_meta(node_data.workplace_type[i].node_pos)