mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-06 15:51:31 +00:00
33 lines
1.5 KiB
Diff
33 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: kidofcubes <kidofcubes@gmail.com>
|
|
Date: Fri, 8 Nov 2024 00:22:44 +0800
|
|
Subject: [PATCH] DivineMC - Lithium: entity.fast_elytra_check +
|
|
entity.fast_hand_swing
|
|
|
|
Original license: GPL v3
|
|
Original project: https://github.com/DivineMC/DivineMC
|
|
|
|
Original license: LGPL v3
|
|
Original project: https://github.com/CaffeineMC/lithium-fabric
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
index a2b40565395921ad293068829355275b4655cf54..7a72265fda98370e62cd959e813956d84bab1248 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
@@ -2768,6 +2768,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) {
|
|
@@ -3746,6 +3747,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
|
}
|
|
|
|
private void updateFallFlying() {
|
|
+ if (!this.isFallFlying()) return; // DivineMC - Lithium: entity.fast_elytra_check
|
|
boolean flag = this.getSharedFlag(7);
|
|
|
|
if (flag && !this.onGround() && !this.isPassenger() && !this.hasEffect(MobEffects.LEVITATION)) {
|