aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch
diff options
context:
space:
mode:
authorFabrizio La Rosa <[email protected]>2024-09-08 22:12:36 +0200
committerGitHub <[email protected]>2024-09-08 22:12:36 +0200
commit971a7a5511b3c656b96a9be66ec9848915eb6d3d (patch)
tree14db760bce66a267a4e0bdbb7da01a675c2bf750 /patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch
parentb09eaf2e8d15fea856005f6727638b753850c8d1 (diff)
downloadPaper-971a7a5511b3c656b96a9be66ec9848915eb6d3d.tar.gz
Paper-971a7a5511b3c656b96a9be66ec9848915eb6d3d.zip
Add Decorated Pot Cracked API (#11365)
Diffstat (limited to 'patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch')
-rw-r--r--patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch b/patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch
new file mode 100644
index 0000000000..a9182bdd0a
--- /dev/null
+++ b/patches/server/0961-Fix-helmet-damage-reduction-inconsistencies.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Lulu13022002 <[email protected]>
+Date: Sat, 27 Apr 2024 21:51:58 +0200
+Subject: [PATCH] Fix helmet damage reduction inconsistencies
+
+Affect the falling stalactite damage type where the
+reduction is not applied like in Vanilla
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+index 9f66fd2f248f0f63c729eb7bb902a5786dfa2cbd..77ef27f9254235180a8596c6c8c4af750dc759d1 100644
+--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
++++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+@@ -1228,7 +1228,7 @@ public class CraftEventFactory {
+ modifiers.put(DamageModifier.FREEZING, freezingModifier);
+ modifierFunctions.put(DamageModifier.FREEZING, freezing);
+ }
+- if (source.is(DamageTypes.FALLING_BLOCK) || source.is(DamageTypes.FALLING_ANVIL)) {
++ if (source.is(DamageTypeTags.DAMAGES_HELMET)) { // Paper
+ modifiers.put(DamageModifier.HARD_HAT, hardHatModifier);
+ modifierFunctions.put(DamageModifier.HARD_HAT, hardHat);
+ }