mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
fix(equipment): only markModified(gear) when equipping gear
This commit is contained in:
parent
baa43e5d44
commit
781ebfccce
1 changed files with 1 additions and 1 deletions
|
|
@ -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) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue