Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7532

Entity#isValid() returns false after server restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major 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:

      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.

            Unassigned Unassigned
            MinePlayer64 56738
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: