mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
c2e2e85063
commit
017d9b1840
3 changed files with 32 additions and 25 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue