Added Entity, Item and Block palletes for 1.17/1 and 1.18/1. Added pallete generators as a command line option. Fixed a minor warning with AttackBot

This commit is contained in:
Dusan Milutinovic 2022-02-13 01:10:10 +01:00
parent 6986902938
commit 61a682a69b
16 changed files with 4488 additions and 72 deletions

View file

@ -100,11 +100,15 @@ namespace MinecraftClient.ChatBots
}
}
}
// check entity distance and health again
if (shouldAttackEntity(entitiesToAttack[priorityEntity]))
if (entitiesToAttack.ContainsKey(priorityEntity))
{
InteractEntity(priorityEntity, 1); // hit the entity!
SendAnimation(Inventory.Hand.MainHand); // Arm animation
// check entity distance and health again
if (shouldAttackEntity(entitiesToAttack[priorityEntity]))
{
InteractEntity(priorityEntity, 1); // hit the entity!
SendAnimation(Inventory.Hand.MainHand); // Arm animation
}
}
}
else