Skip to content

Commit

Permalink
Fix hats not being saved properly
Browse files Browse the repository at this point in the history
  • Loading branch information
colecrouter committed Dec 3, 2023
1 parent 1e7d4c3 commit 370e0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/SaveFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const SaveConverter = {
});

// Copy name to Name, and stack to Stack for every item in the inventory
players.forEach((player) => [player.pantsItem, player.shirtItem, player.boots, player.leftRing, player.rightRing, ...player.items.Item].forEach((item) => {
players.forEach((player) => [player.hat, player.pantsItem, player.shirtItem, player.boots, player.leftRing, player.rightRing, ...player.items.Item].forEach((item) => {
if (item) {
// @ts-expect-error
item.Name = item.name;
Expand Down

0 comments on commit 370e0ac

Please sign in to comment.