mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add auto repsawn if player was dead
This commit is contained in:
parent
ddcc9ee8e6
commit
e93f03bd4e
6 changed files with 37 additions and 0 deletions
|
|
@ -725,6 +725,13 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.OnEntityTeleport(EntityID, X, Y, Z, OnGround);
|
||||
}
|
||||
break;
|
||||
case PacketIncomingType.UpdateHealth:
|
||||
float health = dataTypes.ReadNextFloat(packetData);
|
||||
// don't need them
|
||||
dataTypes.ReadNextVarInt(packetData);
|
||||
dataTypes.ReadNextFloat(packetData);
|
||||
handler.OnUpdateHealth(health);
|
||||
break;
|
||||
default:
|
||||
return false; //Ignored packet
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue