Archiviert
13
0

SPIGOT-738: Return explosion source for Fireball-induced explosions

Dieser Commit ist enthalten in:
Nathan Wolf 2015-05-26 18:48:53 +10:00 committet von md_5
Ursprung 75f835c07a
Commit 01930e268e

Datei anzeigen

@ -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() {