From f3496ae46243af3ef6d6c352136895742bafdc89 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 2 Jun 2017 18:28:23 +1000 Subject: SPIGOT-3284: Allow TNTPrimed#getSource to return invalid entities Eg dead players. --- src/main/java/org/bukkit/entity/TNTPrimed.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/entity/TNTPrimed.java b/src/main/java/org/bukkit/entity/TNTPrimed.java index 3ce322d9..fcd0a9b2 100644 --- a/src/main/java/org/bukkit/entity/TNTPrimed.java +++ b/src/main/java/org/bukkit/entity/TNTPrimed.java @@ -28,9 +28,9 @@ public interface TNTPrimed extends Explosive { * org.bukkit.World#spawn(Location, Class)} method, for example.) *

* 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 */ -- cgit v1.2.3