stop_talking now uses reset_vars_for_player instead of doing that manually
This commit is contained in:
parent
763a7e27c5
commit
567decb7bd
@ -3,8 +3,7 @@ yl_speak_up.stop_talking = function(pname)
|
|||||||
if(not(pname)) then
|
if(not(pname)) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
yl_speak_up.edit_mode[pname] = nil
|
yl_speak_up.reset_vars_for_player(pname, nil)
|
||||||
yl_speak_up.speak_to[pname] = nil
|
|
||||||
minetest.close_formspec(pname, "yl_speak_up:talk")
|
minetest.close_formspec(pname, "yl_speak_up:talk")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user