mirror of
https://github.com/thepeacockproject/Peacock
synced 2025-03-21 00:04:22 +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??!`)
|
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) => ({
|
const inventoryItems: InventoryItem[] = drops.map((unlockable) => ({
|
||||||
InstanceId: unlockable.Guid,
|
InstanceId: unlockable.Guid,
|
||||||
ProfileId: profileId,
|
ProfileId: profileId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user