Mark entities as invalid when they get despawned. Addresses BUKKIT-810
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
@@ -212,6 +212,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||
return !entity.isAlive();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return entity.isAlive() && entity.valid;
|
||||
}
|
||||
|
||||
public Server getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user