From 579946bad5e084138fb850207bb72a064cd383b2 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 03:08:48 +0000 Subject: [PATCH] Port noswingdelay --- src/main/java/net/minecraft/entity/EntityLivingBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/entity/EntityLivingBase.java b/src/main/java/net/minecraft/entity/EntityLivingBase.java index ccbe3c29..4b6cb515 100644 --- a/src/main/java/net/minecraft/entity/EntityLivingBase.java +++ b/src/main/java/net/minecraft/entity/EntityLivingBase.java @@ -905,7 +905,7 @@ public abstract class EntityLivingBase extends Entity { */ public void swingItem() { if (!this.isSwingInProgress || this.swingProgressInt >= this.getArmSwingAnimationEnd() / 2 - || this.swingProgressInt < 0) { + || this.swingProgressInt < 0 || ModManager.noSwingDelay.isEnabled()) { this.swingProgressInt = -1; this.isSwingInProgress = true; }