mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix: Change quest collection to calculate items on the server only
This commit is contained in:
@@ -171,11 +171,7 @@ api.questProgress = {
|
||||
}
|
||||
|
||||
if (quest.collect) {
|
||||
let collect = user.party.quest.progress.collect;
|
||||
_.each(quest.collect, (details, item) => {
|
||||
collect[item] = collect[item] || 0;
|
||||
collect[item] += 300;
|
||||
});
|
||||
user.party.quest.progress.collect += 300;
|
||||
}
|
||||
|
||||
user.markModified('party.quest.progress');
|
||||
|
||||
Reference in New Issue
Block a user