mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
SPIGOT-3284: Allow TNTPrimed#getSource to return invalid entities
Eg dead players. By: md_5 <git@md-5.net>
This commit is contained in:
parent
041acf467f
commit
2522c28ac9
1 changed files with 3 additions and 3 deletions
|
@ -28,9 +28,9 @@ public interface TNTPrimed extends Explosive {
|
|||
* org.bukkit.World#spawn(Location, Class)} method, for example.)
|
||||
* <p>
|
||||
* The source will become null if the chunk this primed TNT is in is
|
||||
* unloaded then reloaded. If the source Entity becomes invalidated for
|
||||
* any reason, such being removed from the world, the returned value will
|
||||
* be null.
|
||||
* unloaded then reloaded. The source entity may be invalid if for example
|
||||
* it has since died or been unloaded. Callers should check
|
||||
* {@link Entity#isValid()}.
|
||||
*
|
||||
* @return the source of this primed TNT
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue