bugfix - d_end exists as well and needs to be treated specially

This commit is contained in:
Sokomine 2022-08-02 21:41:28 +02:00
parent 2355669761
commit 5f98cecfaf

View File

@ -64,7 +64,7 @@ yl_speak_up.debug = true
--###
yl_speak_up.get_number_from_id = function(any_id)
if(any_id == "d_got_item") then
if(not(any_id) or any_id == "d_got_item" or any_id == "d_end") then
return "0"
end
return string.split(any_id, "_")[2]