mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-22 00:19:20 +00:00
* Update Leaf API patches to 1.20.5 * Updated Upstream (Purpur API) * Some server patches work * Update 1.20.6 * Some server patches work * Some some server patches work * 0oO0oO0oOo * iI1IiI1i|!il| * Updated Upstream (Gale/Purpur) * Server patches work * Updated Upstream (Gale)
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: pixelNightly <pixelnightly@proton.me>
|
|
Date: Mon, 4 Dec 2023 16:11:36 +0200
|
|
Subject: [PATCH] Fix sprint glitch
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
index c0eab84d85bdcd01058d3fa4871eb09e10b6171a..20954a7ae2ea649fe176787ec82320f3e946d752 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
@@ -1451,7 +1451,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
|
player.setRealHealth(health);
|
|
}
|
|
|
|
- player.updateScaledHealth(false);
|
|
+ //player.updateScaledHealth(false); // Leaf - Commented out to fix sprint glitch
|
|
+ this.entityData.set(LivingEntity.DATA_HEALTH_ID, player.getScaledHealth()); // Leaf - Sprint glitch fixed by pafias
|
|
return;
|
|
}
|
|
// CraftBukkit end
|