Change attackDelay variable to be called SwingWarmup | Better Naming

This commit is contained in:
Kam committed 2024-02-12 03:14:23 -05:00
1 parent eb01579f4a
commit 76000ecf55
6 files changed
+23 -14

No files matched your search

@@ -133,10 +133,10 @@ public class EntityAIAttackTarget extends EntityAIBase
{
if (this.attackTick <= 0) {
this.attackTick = this.npc.stats.attackSpeed;
if(this.npc.stats.attackDelay == 0)
if(this.npc.stats.swingWarmUp == 0)
this.npc.attackEntityAsMob(this.entityTarget);
this.npc.swingItem();
} else if (this.npc.stats.attackDelay > 0 && this.attackTick == this.npc.stats.attackSpeed - this.npc.stats.attackDelay) {
} else if (this.npc.stats.swingWarmUp > 0 && this.attackTick == this.npc.stats.attackSpeed - this.npc.stats.swingWarmUp) {
// Perform the actual attack that deals damage
this.npc.attackEntityAsMob(this.entityTarget);
}