Fix EntityHandling not disabled when version unsupported

This commit is contained in:
ReinforceZwei 2020-03-31 20:36:45 +08:00 committed by ORelio
parent 9dbb70eb63
commit ef9064c91e
2 changed files with 2 additions and 1 deletions

View file

@ -79,7 +79,7 @@ namespace MinecraftClient.Protocol.Handlers
if(handler.GetEntityHandlingEnabled() && protocolversion < MC1122Version)
{
ConsoleIO.WriteLineFormatted("§8Entities are currently not handled for that MC version.");
handler.SetInventoryEnabled(false);
handler.SetEntityHandlingEnabled(false);
}
if (protocolversion >= MC113Version)

View file

@ -32,6 +32,7 @@ namespace MinecraftClient.Protocol
bool GetInventoryEnabled();
bool SetInventoryEnabled(bool enabled);
bool GetEntityHandlingEnabled();
bool SetEntityHandlingEnabled(bool enabled);
/// <summary>
/// Called when a server was successfully joined