From e6bd2090abb8c903e6407d3a1a50286c3b76c823 Mon Sep 17 00:00:00 2001 From: ORelio Date: Thu, 20 Aug 2020 13:28:40 +0200 Subject: [PATCH] Fix AutoAttack variable name --- MinecraftClient/ChatBots/AutoAttack.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } }