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
|
|
@ -68,7 +68,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.SetTerrainEnabled(false);
|
||||
}
|
||||
|
||||
if (handler.GetInventoryEnabled() && protocolversion > MC114Version)
|
||||
if (handler.GetInventoryEnabled() && protocolversion > MC1152Version)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted("§8Inventories are currently not handled for that MC version.");
|
||||
handler.SetInventoryEnabled(false);
|
||||
|
|
@ -509,7 +509,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
}
|
||||
break;
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue