fix HealthChange event name error

This commit is contained in:
JunDao
2019-05-15 00:02:59 +08:00
parent abf8c72e26
commit a005470e2b
2 changed files with 3 additions and 3 deletions

View File

@ -295,8 +295,8 @@ func handleUpdateHealthPacket(c *Client, p pk.Packet) (err error) {
c.Food = int32(Food)
c.FoodSaturation = float32(FoodSaturation)
if c.Events.HealhtChange != nil {
err = c.Events.HealhtChange()
if c.Events.HealthChange != nil {
err = c.Events.HealthChange()
if err != nil {
return
}