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

Wrong spawn location for EntityType.EXPERIENCE_ORB and EntityType.DROPPED_ITEM

XMLWordPrintable

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

            Unassigned Unassigned
            zerodind Odin Dahlström
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: