fix(equipment): only markModified(gear) when equipping gear

This commit is contained in:
Tyler Renelle 2014-06-09 13:31:32 -06:00
parent baa43e5d44
commit 781ebfccce

View file

@ -653,7 +653,7 @@ api.wrap = (user, main=true) ->
else
user.items.gear[type][item.type] = item.key
message = user.fns.handleTwoHanded(item,type,req)
user.markModified? "items.gear.#{type}"
user.markModified? "items.gear.#{type}"
cb? (if message then {code:200,message} else null), user.items
hatch: (req, cb) ->