mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-03 22:26:19 +00:00
21 lines
969 B
Diff
21 lines
969 B
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/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
|
|
index 9f36d063168c262fec7e69a96bad375b4eaff797..d7bb99b6d0a5818ccd68aa361c77a8733023f1ea 100644
|
|
--- a/net/minecraft/world/entity/LivingEntity.java
|
|
+++ b/net/minecraft/world/entity/LivingEntity.java
|
|
@@ -1379,7 +1379,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
|
player.setRealHealth(health);
|
|
}
|
|
|
|
- player.updateScaledHealth(false);
|
|
+ //player.updateScaledHealth(false); // Leaf - Fix sprint glitch - commented out
|
|
+ this.entityData.set(LivingEntity.DATA_HEALTH_ID, player.getScaledHealth()); // Leaf - Fix sprint glitch
|
|
return;
|
|
}
|
|
// CraftBukkit end
|