mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 03:05:52 -07:00
Mark entities as invalid when they get despawned. Addresses BUKKIT-810
This commit is contained in:
@@ -929,6 +929,8 @@ public class World implements IBlockAccess {
|
||||
for (int i = 0; i < this.u.size(); ++i) {
|
||||
((IWorldAccess) this.u.get(i)).b(entity);
|
||||
}
|
||||
|
||||
entity.valid = false; // CraftBukkit
|
||||
}
|
||||
|
||||
public void kill(Entity entity) {
|
||||
|
Reference in New Issue
Block a user