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

EntityType.FIREWORK_ROCKET is marked as not spawnable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 4182-Spigot-fcd94e2-9003845 (MC: 1.20.6) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
    • Yes

      EntityType.FIREWORK_ROCKET has the `independent` field marked as false, which by javadocs indicates that it should not be spawned (or spawnable) via World#spawn(..), but is definitely spawnable via that method. I'm not sure if this is a relic from older versions that needed a special method, but I don't think it's correct now.

      Since a firework rocket can be spawned via World#spawn (and is the only way to spawn one without a ProjectileSource?), I think this field should be set to true going forward, so EntityType#isSpawnable() returns the proper result.

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/entity/EntityType.java#122

            Unassigned Unassigned
            sovdee Sovde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: