From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: NONPLAYT <76615486+NONPLAYT@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:37:54 +0300 Subject: [PATCH] lithium: entity.fast_elytra_check + entity.fast_hand_swing Original code by CaffeineMC, licensed under LGPL v3 You can find the original code on https://github.com/CaffeineMC/lithium-fabric (Yarn mappings) diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java index c18da64bb878a6fb1b1b9f9c1e9c3a2cc4c96e40..b133bfd8fb75e3f8242f25cd66da46a0d2479bc0 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java @@ -2794,6 +2794,7 @@ public abstract class LivingEntity extends Entity implements Attackable { } protected void updateSwingTime() { + if (!this.swinging && this.swingTime == 0) return; // DivineMC - lithium: entity.fast_hand_swing int i = this.getCurrentSwingDuration(); if (this.swinging) {