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

API Change: getEntities excludes spectators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None

      Considering this is a change in API behavior, this is a bug.

      entity.getNearbyEntities and world.getNearbyEntities use the
      public List<Entity> getEntities(Entity entity, AxisAlignedBB axisalignedbb)

      { return this.a(entity, axisalignedbb, IEntitySelector.d); }

      This Entity Selector excludes spectators. This creates a change in behavior (unable to get nearby spectators when you need to) of the API, and also inconsistency between entities reported from the world list vs location selection.

      The API should be restored to include them, and add a boolean as a new api method to include or exclude them.

            Unassigned Unassigned
            Aikar Daniel Ennis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: