Add OnDeath event for ChatBots (#1220)

* Add New Event
* new Event
This commit is contained in:
Рома Данилов 2020-08-19 00:08:19 +05:00 committed by GitHub
parent e71d0e2383
commit 3adf7c4468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -2027,6 +2027,7 @@ namespace MinecraftClient
{
ConsoleIO.WriteLogLine("You are dead. Type /respawn to respawn.");
}
DispatchBotEvent(bot => bot.OnDeath());
}
DispatchBotEvent(bot => bot.OnHealthUpdate(health, food));