aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0945-Fix-shield-disable-inconsistency.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-10-27 09:43:00 +0100
committerNassim Jahnke <[email protected]>2024-10-27 10:03:59 +0100
commit348c8550967380d9843e365e769f67eee8a8e474 (patch)
tree185991293a5343239e1107ebc98df37de3d020a5 /patches/server/0945-Fix-shield-disable-inconsistency.patch
parentbcf52fe5fd7b178e3c72f53762c8e32ca7910dc4 (diff)
downloadPaper-348c8550967380d9843e365e769f67eee8a8e474.tar.gz
Paper-348c8550967380d9843e365e769f67eee8a8e474.zip
Readd last API patch (with TODO)
Diffstat (limited to 'patches/server/0945-Fix-shield-disable-inconsistency.patch')
-rw-r--r--patches/server/0945-Fix-shield-disable-inconsistency.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/patches/server/0945-Fix-shield-disable-inconsistency.patch b/patches/server/0945-Fix-shield-disable-inconsistency.patch
deleted file mode 100644
index 8d372bca9d..0000000000
--- a/patches/server/0945-Fix-shield-disable-inconsistency.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Jake Potrebic <[email protected]>
-Date: Fri, 26 Apr 2024 19:08:37 -0700
-Subject: [PATCH] Fix shield disable inconsistency
-
-In vanilla, if the damage source is tagged as a projectile,
-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 7196340fefd95845f290329faef489f2b2626ecb..b33dd288065b665e6feb642d090de1fd6e725448 100644
---- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
-+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-@@ -2426,7 +2426,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
- this.hurtCurrentlyUsedShield((float) -event.getDamage(DamageModifier.BLOCKING));
- Entity entity = damagesource.getDirectEntity();
-
-- if (entity instanceof LivingEntity) {
-+ if (!damagesource.is(DamageTypeTags.IS_PROJECTILE) && entity instanceof LivingEntity) { // Paper - Fix shield disable inconsistency
- this.blockUsingShield((LivingEntity) entity);
- }
- }