Fix crash
This commit is contained in:
parent
2dc2400b38
commit
166db4b5e5
@ -649,7 +649,7 @@ function npc.actions.use_openable(self, args)
|
||||
local node = minetest.get_node(pos)
|
||||
local state = npc.actions.get_openable_node_state(node, pos, dir)
|
||||
|
||||
local clicker = self.object
|
||||
local clicker = self.object.npc_name
|
||||
if action ~= state then
|
||||
minetest.registered_nodes[node.name].on_rightclick(pos, node, clicker, nil, nil)
|
||||
end
|
||||
|
@ -259,6 +259,7 @@ function npc.places.find_unused_place(self, place_category, place_type, original
|
||||
return alternative_places[i]
|
||||
end
|
||||
end
|
||||
--result = original_place
|
||||
else
|
||||
result = original_place
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user