Fix prestige being broken after all weapons lvl.10 change.

This commit is contained in:
Vari
2024-10-19 23:22:37 +02:00
committed by Miraak
parent a4f85aad0b
commit feeb8c896b

View File

@@ -186,7 +186,7 @@ protected function resetCharacter(CharacterData &$characterData): void
// first detach all character items
$inventory->detach($allItemsToRemove);
//then attach the defaults again
$inventory->attach([...$defaultItems, $config::getCharacterId()->toString()]);
$inventory->syncWithoutDetaching([...$defaultItems, $config::getCharacterId()->toString()]);
// Remove signature challenges
foreach ($allItemsToRemove as $item) {