Port noswingdelay

This commit is contained in:
ThisIsALegitUsername 2022-12-29 03:08:48 +00:00
parent d127a2996a
commit 579946bad5

View File

@ -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;
}