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

Make player health 20.0 by default #496

Closed
wants to merge 1 commit into from
Closed

Conversation

jivvy
Copy link
Contributor

@jivvy jivvy commented Aug 25, 2023

Objective

When testing making a minigame example, I noticed the player always spawned with 6 health, which is the default for living entities in Valence.

It would also cause a desync between the client and server, because the client implies that it has 20.0 health upon spawning.

Copy link
Collaborator

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

Yeah I noticed this when working on the ctf example. LGTM.

@dyc3
Copy link
Collaborator

dyc3 commented Aug 25, 2023

The CI failures are unrelated.

Copy link
Member

@rj00a rj00a left a comment

Choose a reason for hiding this comment

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

This is caused by #359 (comment). As a result, there are many other places where default values are incorrect.

If we must have a temp fix now, we should edit the extracted JSON file that has the default health value instead.

@dyc3
Copy link
Collaborator

dyc3 commented Aug 25, 2023

In that case, let's close this and open an issue for it instead.

@jivvy jivvy closed this Aug 26, 2023
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.

3 participants