mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update Inventory support version to 1.15.2 and Remove GetInventoryEnabled condition bypass
This commit is contained in:
parent
27db483c7c
commit
364afdfc72
2 changed files with 2 additions and 3 deletions
|
|
@ -88,7 +88,6 @@
|
||||||
<Compile Include="ChatBots\TestBot.cs" />
|
<Compile Include="ChatBots\TestBot.cs" />
|
||||||
<Compile Include="ChatBot.cs" />
|
<Compile Include="ChatBot.cs" />
|
||||||
<Compile Include="Command.cs" />
|
<Compile Include="Command.cs" />
|
||||||
<Compile Include="Commands\AutoAttack.cs" />
|
|
||||||
<Compile Include="Commands\Connect.cs" />
|
<Compile Include="Commands\Connect.cs" />
|
||||||
<Compile Include="Commands\Debug.cs" />
|
<Compile Include="Commands\Debug.cs" />
|
||||||
<Compile Include="Commands\Look.cs" />
|
<Compile Include="Commands\Look.cs" />
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
handler.SetTerrainEnabled(false);
|
handler.SetTerrainEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handler.GetInventoryEnabled() && protocolversion > MC114Version)
|
if (handler.GetInventoryEnabled() && protocolversion > MC1152Version)
|
||||||
{
|
{
|
||||||
ConsoleIO.WriteLineFormatted("§8Inventories are currently not handled for that MC version.");
|
ConsoleIO.WriteLineFormatted("§8Inventories are currently not handled for that MC version.");
|
||||||
handler.SetInventoryEnabled(false);
|
handler.SetInventoryEnabled(false);
|
||||||
|
|
@ -509,7 +509,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketIncomingType.WindowItems:
|
case PacketIncomingType.WindowItems:
|
||||||
if (handler.GetInventoryEnabled()||true) // set true in .ini but GetInventoryEnabled seems like return false
|
if (handler.GetInventoryEnabled())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Following commented code will crash
|
* Following commented code will crash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue