Add OnTimeUpdate() and OnRespawn() to ChatBot API

This commit is contained in:
Рома Данилов 2020-08-07 13:35:23 +05:00 committed by GitHub
parent 2034729f74
commit ccc364df34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -1522,6 +1522,7 @@ namespace MinecraftClient
}
ClearInventories();
DispatchBotEvent(bot => bot.OnRespawn());
}
/// <summary>
@ -1978,6 +1979,7 @@ namespace MinecraftClient
lastAge = WorldAge;
lastTime = DateTime.Now;
}
DispatchBotEvent(bot => bot.OnTimeUpdate(WorldAge, TimeOfDay));
}
/// <summary>