pass owner on for talk_sign so that it works properly
This commit is contained in:
parent
773fcea5b8
commit
554213d8eb
@ -29,7 +29,8 @@ minetest.register_node("npc_talk:talk_sign", {
|
|||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if(minetest.global_exists("yl_speak_up") and yl_speak_up.talk) then
|
if(minetest.global_exists("yl_speak_up") and yl_speak_up.talk) then
|
||||||
yl_speak_up.talk({is_block = true, pos = pos}, clicker)
|
local meta = minetest.get_meta(pos)
|
||||||
|
yl_speak_up.talk({is_block = true, pos = pos, owner = meta:get_string("owner")}, clicker)
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user