From 01930e268e70fc634b16f726d773427a48922299 Mon Sep 17 00:00:00 2001 From: Nathan Wolf Date: Tue, 26 May 2015 18:48:53 +1000 Subject: SPIGOT-738: Return explosion source for Fireball-induced explosions --- nms-patches/Explosion.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nms-patches/Explosion.patch') diff --git a/nms-patches/Explosion.patch b/nms-patches/Explosion.patch index c49fa8ff..1da3e5fa 100644 --- a/nms-patches/Explosion.patch +++ b/nms-patches/Explosion.patch @@ -144,3 +144,15 @@ } } } +@@ -197,7 +266,10 @@ + } + + public EntityLiving c() { +- 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 + } + + public void clearBlocks() { -- cgit v1.2.3