summaryrefslogtreecommitdiffstats
path: root/nms-patches/Explosion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/Explosion.patch')
-rw-r--r--nms-patches/Explosion.patch5
1 files changed, 2 insertions, 3 deletions
diff --git a/nms-patches/Explosion.patch b/nms-patches/Explosion.patch
index 9e09e327..1b6b56f1 100644
--- a/nms-patches/Explosion.patch
+++ b/nms-patches/Explosion.patch
@@ -139,13 +139,12 @@
}
}
}
-@@ -197,7 +266,10 @@
+@@ -197,7 +266,9 @@
}
- public EntityLiving c() {
+ public EntityLiving getSource() {
- return this.source == null ? null : (this.source instanceof EntityTNTPrimed ? ((EntityTNTPrimed) this.source).getSource() : (this.source instanceof EntityLiving ? (EntityLiving) this.source : null));
+ // CraftBukkit start - obtain Fireball shooter for explosion tracking
-+ // PAIL: Rename
+ return this.source == null ? null : (this.source instanceof EntityTNTPrimed ? ((EntityTNTPrimed) this.source).getSource() : (this.source instanceof EntityLiving ? (EntityLiving) this.source : (this.source instanceof EntityFireball ? ((EntityFireball) this.source).shooter : null)));
+ // CraftBukkit end
}