mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix AutoAttack variable name
This commit is contained in:
parent
fb3f5ed040
commit
e6bd2090ab
1 changed files with 3 additions and 3 deletions
|
|
@ -75,13 +75,13 @@ namespace MinecraftClient.ChatBots
|
||||||
}
|
}
|
||||||
else // low health priority
|
else // low health priority
|
||||||
{
|
{
|
||||||
float health = int.MaxValue;
|
float entityHealth = int.MaxValue;
|
||||||
foreach (var entity in entitiesToAttack)
|
foreach (var entity in entitiesToAttack)
|
||||||
{
|
{
|
||||||
if (entity.Value.Health < health)
|
if (entity.Value.Health < entityHealth)
|
||||||
{
|
{
|
||||||
priorityEntity = entity.Key;
|
priorityEntity = entity.Key;
|
||||||
health = entity.Value.Health;
|
entityHealth = entity.Value.Health;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue