Correctly cancel consumption of consumable

See: #11534
This commit is contained in:
Bjarne Koll 2024-10-31 12:44:02 +01:00 committed by GitHub
parent 40a960db45
commit dfedf79a2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 125 additions and 49 deletions

View file

@ -8,7 +8,7 @@ it will not disable the shield if the attacker is holding
an axe item.
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
index 49b3d8d2bc34c0785f143bbc8976308f5bf8c9de..f6d55ff3027bb7f0dcef186c52d48d9c5358ffd0 100644
index 2fa73a9f444628a5e0df9f54e9bcd453973f0029..e2a069d15d355e985bd80e27023c53b8ef72e0e9 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
@@ -2424,7 +2424,7 @@ public abstract class LivingEntity extends Entity implements Attackable {