Fix AutoAttack variable name

This commit is contained in:
ORelio 2020-08-20 13:28:40 +02:00
parent fb3f5ed040
commit e6bd2090ab

View file

@ -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;
} }
} }
} }