Entity#isValid() returns false after server restart

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 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:

      1. Summon an entity: /summon minecraft:pig
      2. Call isValid() on the entity, it will return true
      3. Stop and restart the server
      4. 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.

            Assignee:
            Unassigned
            Reporter:
            56738
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: