mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 14:50:03 +01:00
Mark entities as invalid when they get despawned. Addresses BUKKIT-810
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
18adfe63c3
commit
cdfbbb4638
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user