diff options
author | Jake Potrebic <[email protected]> | 2024-04-26 19:33:30 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-04-26 19:33:30 -0700 |
commit | 81f4405e2630f408a07793564b6eb28b562ed78d (patch) | |
tree | 101fc10b1e39e32267c9f2c832bab85f5fd6ccb9 /patches/server/1040-Fix-shield-disable-inconsistency.patch | |
parent | 9bac3894e1b2ee246b247b0ec0575adae605a6b1 (diff) | |
download | Paper-81f4405e2630f408a07793564b6eb28b562ed78d.tar.gz Paper-81f4405e2630f408a07793564b6eb28b562ed78d.zip |
add back hunk to async SavedData IO
Diffstat (limited to 'patches/server/1040-Fix-shield-disable-inconsistency.patch')
-rw-r--r-- | patches/server/1040-Fix-shield-disable-inconsistency.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/patches/server/1040-Fix-shield-disable-inconsistency.patch b/patches/server/1040-Fix-shield-disable-inconsistency.patch deleted file mode 100644 index 777f27d8bb..0000000000 --- a/patches/server/1040-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 bad6a69246f6b0a4ada222b820f16469f91b0534..e0124e44e1abe8237859e8dc1e357298188dab52 100644 ---- a/src/main/java/net/minecraft/world/entity/LivingEntity.java -+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java -@@ -2335,7 +2335,7 @@ public abstract class LivingEntity extends Entity implements Attackable { - this.hurtCurrentlyUsedShield((float) -event.getDamage(DamageModifier.BLOCKING)); - Entity entity = damagesource.getDirectEntity(); - -- if (entity instanceof LivingEntity && entity.distanceToSqr(this) <= (200.0D * 200.0D)) { // Paper - Improve boat collision performance -+ if (!damagesource.is(DamageTypeTags.IS_PROJECTILE) && entity instanceof LivingEntity && entity.distanceToSqr(this) <= (200.0D * 200.0D)) { // Paper - Improve boat collision performance - this.blockUsingShield((LivingEntity) entity); - } - } |