fix HealthChange event name error
This commit is contained in:
@ -8,7 +8,7 @@ type eventBroker struct {
|
||||
GameStart func() error
|
||||
ChatMsg func(msg chat.Message, pos byte) error
|
||||
Disconnect func(reason chat.Message) error
|
||||
HealhtChange func() error
|
||||
HealthChange func() error
|
||||
Die func() error
|
||||
SoundPlay func(name string, category int, x, y, z float64, volume, pitch float32) error
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user