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

feat: bot.respawn, fix respawn with flying squid #3206

Merged
merged 4 commits into from
Jan 6, 2024

Conversation

zardoy
Copy link
Contributor

@zardoy zardoy commented Sep 27, 2023

respawn wasnt working with flying squid. It worked with vanilla client as I understand vanilla handle both payload and actionId. Maybe it would be better to remove acknowledgment of respawnIsPayload feature?

@zardoy
Copy link
Contributor Author

zardoy commented Sep 27, 2023

imo respawn option should be renamed to autoRespawn

(cherry picked from commit 66e34da)
@zardoy zardoy closed this Sep 28, 2023
@zardoy
Copy link
Contributor Author

zardoy commented Jan 5, 2024

so confused why it was closed

@zardoy zardoy reopened this Jan 5, 2024
@zardoy zardoy marked this pull request as ready for review January 5, 2024 09:07
bot._client.write('client_command', bot.supportFeature('respawnIsPayload') ? { payload: 0 } : { actionId: 0 })
}

bot.respawn = respawn
Copy link
Member

Choose a reason for hiding this comment

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

this should be added to API.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

@rom1504 rom1504 merged commit 3a6ce54 into PrismarineJS:master Jan 6, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants