mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix null PlayerInventory Fix issue #1022
This commit is contained in:
parent
c79c22bcdf
commit
eddf7ad063
1 changed files with 6 additions and 0 deletions
|
|
@ -546,6 +546,12 @@ namespace MinecraftClient
|
|||
/// </summary>
|
||||
public void OnRespawn()
|
||||
{
|
||||
if (inventoryHandlingEnabled)
|
||||
{
|
||||
inventories.Clear();
|
||||
inventories[0] = new Container(0, ContainerType.PlayerInventory, "Player Inventory");
|
||||
}
|
||||
|
||||
if (terrainAndMovementsRequested)
|
||||
{
|
||||
terrainAndMovementsEnabled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue