-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
This server is running CraftBukkit version 3956-Spigot-9d72885-5a7080b (MC: 1.20.3) (Implementing API version 1.20.3-R0.1-SNAPSHOT)
-
Yes
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.