summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-06-02 18:28:23 +1000
committermd_5 <git@md-5.net>2017-06-02 18:28:23 +1000
commitf3496ae46243af3ef6d6c352136895742bafdc89 (patch)
tree20e64babf8e6b69e3fedd56c39f95f11a6dfd2b7
parent80c927a7496c4a4c0085ca84668ea458a03e055e (diff)
downloadbukkit-f3496ae46243af3ef6d6c352136895742bafdc89.tar
bukkit-f3496ae46243af3ef6d6c352136895742bafdc89.tar.gz
bukkit-f3496ae46243af3ef6d6c352136895742bafdc89.tar.lz
bukkit-f3496ae46243af3ef6d6c352136895742bafdc89.tar.xz
bukkit-f3496ae46243af3ef6d6c352136895742bafdc89.zip
SPIGOT-3284: Allow TNTPrimed#getSource to return invalid entities
Eg dead players.
-rw-r--r--src/main/java/org/bukkit/entity/TNTPrimed.java6
1 files changed, 3 insertions, 3 deletions
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.)
* <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
*/