diff options
author | rubenwardy <rubenwardy@gmail.com> | 2016-08-01 17:05:02 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-08-01 17:05:02 +0100 |
commit | 48bb2e96562d1af9d1b47ec577fd4fc86e6b37b1 (patch) | |
tree | 462501fa0668f1735d20bf4d68e4cb952fc961cf /api.lua | |
parent | c79f13a4a3199a18c62297ece3f81fac40a64370 (diff) |
Fix craft trigger not taking stack count into account
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ function awards.run_trigger_callbacks(player, data, trigger, table_func) end end -function awards.increment_item_counter(data, field, itemname) +function awards.increment_item_counter(data, field, itemname, count) local name_split = string.split(itemname, ":") if #name_split ~= 2 then return false @@ -91,7 +91,7 @@ function awards.increment_item_counter(data, field, itemname) awards.tbv(data[field], mod) awards.tbv(data[field][mod], item, 0) - data[field][mod][item] = data[field][mod][item] + 1 + data[field][mod][item] = data[field][mod][item] + (count or 1) return true else return false |