Merge pull request #332 from argonui/custom-data-helper

Bugfix for unprovided subtype (token spawning)
This commit is contained in:
BootleggerFinn 2023-07-27 18:44:55 -05:00 committed by GitHub
commit 6ff0bdf74b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,6 +232,11 @@ do
return
end
-- handling for not provided subtype (for example when spawning from custom data helpers)
if subType == nil then
subType = ""
end
-- this is used to load the correct state for additional resource tokens (e.g. "Ammo")
local callback = nil
local stateID = stateTable[string.lower(subType)]