diff --git a/MinecraftClient/ChatBots/AutoAttack.cs b/MinecraftClient/ChatBots/AutoAttack.cs index 39b5c724..b7e37b2d 100644 --- a/MinecraftClient/ChatBots/AutoAttack.cs +++ b/MinecraftClient/ChatBots/AutoAttack.cs @@ -75,13 +75,13 @@ namespace MinecraftClient.ChatBots } else // low health priority { - float health = int.MaxValue; + float entityHealth = int.MaxValue; foreach (var entity in entitiesToAttack) { - if (entity.Value.Health < health) + if (entity.Value.Health < entityHealth) { priorityEntity = entity.Key; - health = entity.Value.Health; + entityHealth = entity.Value.Health; } } }