mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-22 22:12:45 +01:00
Fix double-unlocking stuff when masteryprogression is disabled (#481)
This commit is contained in:
parent
0f9c41b55e
commit
dfca18a0aa
@ -631,6 +631,11 @@ export function grantDrops(profileId: string, drops: Unlockable[]): void {
|
||||
assert.fail(`User ${profileId} does not have an inventory??!`)
|
||||
}
|
||||
|
||||
if (!getFlag("enableMasteryProgression")) {
|
||||
// mastery is disabled, everything is already unlocked, don't double-unlock
|
||||
return
|
||||
}
|
||||
|
||||
const inventoryItems: InventoryItem[] = drops.map((unlockable) => ({
|
||||
InstanceId: unlockable.Guid,
|
||||
ProfileId: profileId,
|
||||
|
Loading…
Reference in New Issue
Block a user