mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-738: Return explosion source for Fireball-induced explosions
By: Nathan Wolf <nathan@elmakers.com>
This commit is contained in:
parent
ea2a79ee8a
commit
66c4b9d50d
1 changed files with 12 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue