Rename command Status to Health

This commit is contained in:
ReinforceZwei 2020-04-04 19:18:18 +08:00 committed by ORelio
parent 975e6d4daa
commit bf86259b4b
5 changed files with 8 additions and 8 deletions

View file

@ -725,10 +725,10 @@ namespace MinecraftClient.Protocol.Handlers
break;
case PacketIncomingType.UpdateHealth:
float health = dataTypes.ReadNextFloat(packetData);
int Food = dataTypes.ReadNextVarInt(packetData);
int food = dataTypes.ReadNextVarInt(packetData);
// Food Saturation, not useful
dataTypes.ReadNextFloat(packetData);
handler.OnUpdateHealth(health, Food);
handler.OnUpdateHealth(health, food);
break;
default:
return false; //Ignored packet

View file

@ -212,7 +212,7 @@ namespace MinecraftClient.Protocol
/// <param name="item">Item (may be null for empty slot)</param>
void OnSetSlot(byte inventoryID, short slotID, Item item);
void OnUpdateHealth(float health, int Food);
void OnUpdateHealth(float health, int food);
/// <summary>
/// Called when the Player entity ID has been received from the server