From e722a064c809a5d2827760ee0d9859855347772c Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Fri, 22 Nov 2013 20:11:35 +0100 Subject: [PATCH] revert drop notification change --- public/js/controllers/notificationCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index 2873e1aac3..759fd267b5 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -29,7 +29,8 @@ habitrpg.controller('NotificationCtrl', }); $rootScope.$watch('user._tmp.drop', function(after, before){ - if (!after) return; + // won't work when getting the same item twice? + if (after == before || !after) return; var type = after.type === 'HatchingPotion' ? 'hatchingPotions' : (after.type.toLowerCase() + 's') if(!User.user.items[type][after.name]){ User.user.items[type][after.name] = 0;