create a nasty hack to get rid of the persistent Tavern quest exhaust sprites

This commit is contained in:
Alys
2015-10-31 19:01:21 +09:00
parent 8f21fb2419
commit fbb1f9aec5

View File

@@ -273,6 +273,7 @@ module.exports.tavernQuest = {};
var tavernQ = {_id:'habitrpg','quest.key':{$ne:null}};
process.nextTick(function(){
mongoose.model('Group').findOne(tavernQ, function(err,tavern){
return; // No tavern quest // FIXME do this properly!
if (!tavern) return; // No tavern quest
var quest = tavern.quest.toObject();