mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix EntityHandling not disabled when version unsupported
This commit is contained in:
parent
9dbb70eb63
commit
ef9064c91e
2 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
if(handler.GetEntityHandlingEnabled() && protocolversion < MC1122Version)
|
if(handler.GetEntityHandlingEnabled() && protocolversion < MC1122Version)
|
||||||
{
|
{
|
||||||
ConsoleIO.WriteLineFormatted("§8Entities are currently not handled for that MC version.");
|
ConsoleIO.WriteLineFormatted("§8Entities are currently not handled for that MC version.");
|
||||||
handler.SetInventoryEnabled(false);
|
handler.SetEntityHandlingEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (protocolversion >= MC113Version)
|
if (protocolversion >= MC113Version)
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ namespace MinecraftClient.Protocol
|
||||||
bool GetInventoryEnabled();
|
bool GetInventoryEnabled();
|
||||||
bool SetInventoryEnabled(bool enabled);
|
bool SetInventoryEnabled(bool enabled);
|
||||||
bool GetEntityHandlingEnabled();
|
bool GetEntityHandlingEnabled();
|
||||||
|
bool SetEntityHandlingEnabled(bool enabled);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when a server was successfully joined
|
/// Called when a server was successfully joined
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue