From 781ebfccce9855c7cb958cfdb384bfdbdd37b472 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 9 Jun 2014 13:31:32 -0600 Subject: [PATCH] fix(equipment): only markModified(gear) when equipping gear --- script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/index.coffee b/script/index.coffee index 97fe7a8848..9d251e6379 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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) ->