mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Reset inventory on game join (#1067)
Reset inventory each time Game Join event is received
This commit is contained in:
parent
ee8bc7f308
commit
c79c22bcdf
1 changed files with 6 additions and 6 deletions
|
|
@ -148,12 +148,6 @@ namespace MinecraftClient
|
||||||
inventoryHandlingEnabled = Settings.InventoryHandling;
|
inventoryHandlingEnabled = Settings.InventoryHandling;
|
||||||
entityHandlingEnabled = Settings.EntityHandling;
|
entityHandlingEnabled = Settings.EntityHandling;
|
||||||
|
|
||||||
if (inventoryHandlingEnabled)
|
|
||||||
{
|
|
||||||
inventories.Clear();
|
|
||||||
inventories[0] = new Container(0, ContainerType.PlayerInventory, "Player Inventory");
|
|
||||||
}
|
|
||||||
|
|
||||||
bool retry = false;
|
bool retry = false;
|
||||||
this.sessionid = sessionID;
|
this.sessionid = sessionID;
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
|
|
@ -517,6 +511,12 @@ namespace MinecraftClient
|
||||||
Settings.MCSettings_Skin_All,
|
Settings.MCSettings_Skin_All,
|
||||||
Settings.MCSettings_MainHand);
|
Settings.MCSettings_MainHand);
|
||||||
|
|
||||||
|
if (inventoryHandlingEnabled)
|
||||||
|
{
|
||||||
|
inventories.Clear();
|
||||||
|
inventories[0] = new Container(0, ContainerType.PlayerInventory, "Player Inventory");
|
||||||
|
}
|
||||||
|
|
||||||
foreach (ChatBot bot in bots.ToArray())
|
foreach (ChatBot bot in bots.ToArray())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue