mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Make AutoAttack check entity health
This commit is contained in:
parent
1f93fdbab5
commit
fe59633cd6
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ namespace MinecraftClient.ChatBots
|
|||
/// <returns>If the entity should be attacked</returns>
|
||||
public bool handleEntity(Entity entity)
|
||||
{
|
||||
if (!entity.Type.IsHostile())
|
||||
if (!entity.Type.IsHostile() || entity.Health <= 0)
|
||||
return false;
|
||||
|
||||
bool isBeingAttacked = entitiesToAttack.ContainsKey(entity.ID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue