Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with Giveaways #125

Merged
merged 4 commits into from
Mar 21, 2024
Merged

Fix bug with Giveaways #125

merged 4 commits into from
Mar 21, 2024

Conversation

FreezePhoenix
Copy link
Contributor

This fixes a bug with giveaways. Giveaways would previously list all of the participants of a giveaway in the mail, but at some point a breaking change occurred, and instead it lists [object Object] multiple times.

Example of bugged behavior:
image

This fixes a bug with giveaways. Giveaways would previously list all of the participants of a giveaway in the mail, but at some point a breaking change occurred, and instead it lists [object Object] multiple times.
@FreezePhoenix
Copy link
Contributor Author

grumble

If a player was not on the server when the giveaway ended, or their inventory was full, then the server would push `{ name: undefined }` into the list of players that could win the giveaway. This would send the item into the abyss, as it would error while the server would try to mail the item, preventing it from being recovered.
@FreezePhoenix
Copy link
Contributor Author

Fixed another bug with giveaways: If a player (who won the giveaway) was not on the server when the giveaway ended, or their inventory was full, then the server would push { name: undefined } into the list of players that could win the giveaway. This would send the item into the abyss, as it would error while the server would try to mail the item, preventing it from being recovered.

@kaansoral kaansoral merged commit 07f109b into kaansoral:main Mar 21, 2024
1 check passed
@FreezePhoenix FreezePhoenix deleted the patch-14 branch March 21, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants