aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0950-Fix-DamageSource-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0950-Fix-DamageSource-API.patch')
-rw-r--r--patches/server/0950-Fix-DamageSource-API.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0950-Fix-DamageSource-API.patch b/patches/server/0950-Fix-DamageSource-API.patch
index b6a6d334d0..26474a62cf 100644
--- a/patches/server/0950-Fix-DamageSource-API.patch
+++ b/patches/server/0950-Fix-DamageSource-API.patch
@@ -175,7 +175,7 @@ index 60eac9df10a9a395a1568925515d010eb51a64e5..55fd997a4e894eeab24de269d59e4861
if (flag && entity instanceof LivingEntity entityliving) {
diff --git a/src/main/java/org/bukkit/craftbukkit/damage/CraftDamageSource.java b/src/main/java/org/bukkit/craftbukkit/damage/CraftDamageSource.java
-index 5572c50cac4968e3ec75fe1fc98442407bc3b905..7df86e7124a9ed359f05324b8fc4c8862f7e4b79 100644
+index 8532324060eed772a10e2a3429890438cf32f9ba..7df86e7124a9ed359f05324b8fc4c8862f7e4b79 100644
--- a/src/main/java/org/bukkit/craftbukkit/damage/CraftDamageSource.java
+++ b/src/main/java/org/bukkit/craftbukkit/damage/CraftDamageSource.java
@@ -41,13 +41,13 @@ public class CraftDamageSource implements DamageSource {
@@ -198,7 +198,7 @@ index 5572c50cac4968e3ec75fe1fc98442407bc3b905..7df86e7124a9ed359f05324b8fc4c886
@Override
public boolean isIndirect() {
-- return this.getHandle().getEntity() != this.getHandle().getDamager();
+- return this.getHandle().getCausingDamager() != this.getHandle().getDamager();
+ return !this.getHandle().isDirect(); // Paper - fix DamageSource API
}