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 egg found message being sent twice #729

Merged
merged 2 commits into from
May 29, 2024

Conversation

Emirlol
Copy link
Collaborator

@Emirlol Emirlol commented May 24, 2024

This should, in theory, fix it since the issue only happens when eggs move around and the eggs get reset to null. With this, there's no more null setting on new egg spawn (so only on world change, which is irrelevant to this), so the location comparison happens and since the 2nd message's egg location is the same as the 1st one it just doesn't get sent.

Might need testing though, maybe there's something I overlooked.

@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label May 24, 2024
@kevinthegreat1 kevinthegreat1 added the bug Something isn't working label May 24, 2024
@kevinthegreat1 kevinthegreat1 added this to the 1.21 milestone May 24, 2024
kevinthegreat1
kevinthegreat1 previously approved these changes May 25, 2024
Copy link
Collaborator

@kevinthegreat1 kevinthegreat1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean code looks good, but I can't test ¯_(ツ)_/¯

@LifeIsAParadox LifeIsAParadox added merge me please Pull requests that are ready to merge and removed reviews needed This PR needs reviews labels May 25, 2024
@kevinthegreat1 kevinthegreat1 added the bleeding edge This PR has been accepted into bleeding edge label May 25, 2024
@LifeIsAParadox LifeIsAParadox added reviews needed This PR needs reviews and removed merge me please Pull requests that are ready to merge labels May 26, 2024
@LifeIsAParadox LifeIsAParadox added merge me please Pull requests that are ready to merge and removed reviews needed This PR needs reviews labels May 27, 2024
@AzureAaron AzureAaron merged commit a14017a into SkyblockerMod:master May 29, 2024
1 check passed
@LifeIsAParadox LifeIsAParadox removed the merge me please Pull requests that are ready to merge label May 29, 2024
@Emirlol Emirlol deleted the chocolate-factory-hotfix branch May 30, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bleeding edge This PR has been accepted into bleeding edge bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants