mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Player session
This commit is contained in:
parent
08da49756f
commit
4be7a05006
6 changed files with 87 additions and 8 deletions
|
|
@ -9,6 +9,7 @@ using MinecraftClient.Inventory;
|
|||
using MinecraftClient.Logger;
|
||||
using MinecraftClient.Mapping;
|
||||
using MinecraftClient.Protocol;
|
||||
using MinecraftClient.Protocol.Handlers;
|
||||
using MinecraftClient.Protocol.Handlers.Forge;
|
||||
using MinecraftClient.Protocol.Keys;
|
||||
using MinecraftClient.Protocol.Message;
|
||||
|
|
@ -1127,6 +1128,11 @@ namespace MinecraftClient
|
|||
}
|
||||
}
|
||||
|
||||
public PlayerKeyPair? GetPlayerKeyPair()
|
||||
{
|
||||
return playerKeyPair;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Action methods: Perform an action on the Server
|
||||
|
|
@ -2402,6 +2408,10 @@ namespace MinecraftClient
|
|||
Config.MCSettings.Skin.GetByte(),
|
||||
(byte)Config.MCSettings.MainHand);
|
||||
|
||||
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
|
||||
&& playerKeyPair != null)
|
||||
handler.SendPlayerSession(playerKeyPair);
|
||||
|
||||
|
||||
if (inventoryHandlingRequested)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue