|
Entity#isValid() returns false for all entities after restarting the server.
Steps to reproduce:
- Summon an entity: /summon minecraft:pig
- Call isValid() on the entity, it will return true
- Stop and restart the server
- Call isValid() on the entity, it will return false
The attached test plugin prints the value of isValid() when you right-click an entity.
Entity#isInWorld() also returns false. Most likely caused by https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/915/overview.
|