mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Made ChatBotAPI OnEntityDespawn to pass Entity object instead of EntityID
This commit is contained in:
parent
dbf5334758
commit
7fbf9443a1
4 changed files with 9 additions and 10 deletions
|
|
@ -1115,12 +1115,12 @@ namespace MinecraftClient
|
|||
{
|
||||
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))
|
||||
{
|
||||
entities.Remove(a);
|
||||
}
|
||||
foreach (ChatBot bot in bots.ToArray())
|
||||
bot.OnEntityDespawn(a);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue