mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed the client crashs when a Player in the render distance dead (including client player)
Bad End: Dead and Crash just kidding
This commit is contained in:
parent
4b08912407
commit
c870f080f2
1 changed files with 2 additions and 2 deletions
|
|
@ -1115,10 +1115,10 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
foreach (int a in Entities)
|
foreach (int a in Entities)
|
||||||
{
|
{
|
||||||
foreach (ChatBot bot in bots.ToArray())
|
|
||||||
bot.OnEntityDespawn(new Entity(entities[a].ID, entities[a].Type, entities[a].Location));
|
|
||||||
if (entities.ContainsKey(a))
|
if (entities.ContainsKey(a))
|
||||||
{
|
{
|
||||||
|
foreach (ChatBot bot in bots.ToArray())
|
||||||
|
bot.OnEntityDespawn(new Entity(entities[a].ID, entities[a].Type, entities[a].Location));
|
||||||
entities.Remove(a);
|
entities.Remove(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue