forked from Sokomine/yl_speak_up
bugfix - d_end exists as well and needs to be treated specially
This commit is contained in:
parent
2355669761
commit
5f98cecfaf
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user