You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/java/com/viaversion/viarewind/protocol/v1_8to1_7_6_10/rewriter/PlayerPacketRewriter1_8.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -126,11 +126,12 @@ public void register() {
126
126
return;
127
127
}
128
128
129
-
// TODO figure out why this is needed
129
+
// On 1.8 clients when the player respawns it keeps all metadata and sets player back to max HP
130
+
// 1.7 clients do not copy the metadata but do set the health to max HP
131
+
// to match the same client logic we remove the HP metadata as otherwise the client would be set to their old HP before respawning
0 commit comments