Crash Fix, add Respawn method (#1227)

* Crashes Fix
* Add Respawn
* Crashes Fix
* Update McClient.cs
* Update McClient.cs
* Fix Air item count to 0
This commit is contained in:
Рома Данилов 2020-08-22 14:17:31 +05:00 committed by GitHub
parent c2e2e85063
commit 017d9b1840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 25 deletions

View file

@ -1247,6 +1247,16 @@ namespace MinecraftClient
{
return Handler.GetMaxChatMessageLength();
}
/// <summary>
/// Respawn player
/// </summary>
protected bool Respawn()
{
if (Handler.GetHealth() <= 0)
return Handler.SendRespawnPacket();
else return false;
}
/// <summary>
/// Command runner definition.