From feeb8c896bca899f7c1d536edfd6980d65392d7b Mon Sep 17 00:00:00 2001 From: Vari Date: Sat, 19 Oct 2024 23:22:37 +0200 Subject: [PATCH] Fix prestige being broken after all weapons lvl.10 change. --- dist/app/Http/Controllers/Api/Player/PlayerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/app/Http/Controllers/Api/Player/PlayerController.php b/dist/app/Http/Controllers/Api/Player/PlayerController.php index 072c2ff..0def470 100644 --- a/dist/app/Http/Controllers/Api/Player/PlayerController.php +++ b/dist/app/Http/Controllers/Api/Player/PlayerController.php @@ -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) {