Wrong spawn location for EntityType.EXPERIENCE_ORB and EntityType.DROPPED_ITEM

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • None
    • CraftBukkit version 3976-Spigot-06d602e-b3b43a6 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT)
    • Yes

      Relevant code sample:

      ExperienceOrb orb = (ExperienceOrb) location.getWorld().spawnEntity(location, EntityType.EXPERIENCE_ORB);
      orb.setExperience(1);
      

      When spawning a EntityType.EXPERIENCE_ORB or EntityType.DROPPED_ITEM entity using World#spawnEntity, the entity is spawned at the wrong location. Specifically, the entity is spawned at (x, z, z) instead of (x, y, z). This bug is a regression which was introduced by craftbukkit#1306.

      Here are the relevant lines of code:

            Assignee:
            Unassigned
            Reporter:
            Odin Dahlström
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: