Respawn dead players when they login so they don't get stuck without the death formspec #4041
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4041
Loading…
Reference in New Issue
No description provided.
Delete Branch "Eliy21/MineClone2:respawn_joining_dead_players"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hopefully will prevent the dead player not respawning when logging in bug from happening https://forum.minetest.net/viewtopic.php?p=430589#p430589
Testing
I can't replicate the bug but if players with 0 hp joins, they will be forcibly respawned. I tested being forcibly respawned on joining without the "if then condition" and I also tested that the hp variable is correct. But for the actual bug to happen, I don't know how.
869680d927
to22952fd591
Oooh, good idea and fixes a really nasty bug. Thanks for knocking up this PR :).
I thought that this may have repercussions on hiding the bug that does not show the death formspec instead of actually fixing it but I deemed that the positives outweigh the negative since people have resorted to abandoning accounts because of this bug.
100% true and definitely a good thought process. In future, you can always minetest.log this with "action" or "warning" and it'll log it. Maybe last one will be easier to grep for for server owners who can pass the info on to us.
Uh oh should I have added that log to this PR? But since this is already merged its probably too late now. Should I make another PR adding that in?
That is a decision for @the-real-herowl . It's worth it imho, but we are close to release.
Make the PR.
Ok will do it later in a few hours since I can't right now. Hopefully I'll make it in time.
You will. Take your time, I'm merging #4036 in 2-3 days and we're not doing release before that.
For a second I thought the release is happening today as I see a release PR and everything. Ok that takes the pressure off me thanks.