Non default end worlds do not have a EnderDragonBattle anymore in 1.19!

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Environment:

       

    • 3528-Spigot-56be6a8-031eaad (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
    • Yes

      There seems to be a bug with non default end worlds:

      org.bukkit.World#getEnderDragonBattle

      and

      net.minecraft.server.level.WorldServer#C (= getDragonBattle in 1.19 NMS)

      both always return null !

       

      With the default end world (e.g. world_the_end) those commands return the correct

      org.bukkit.boss.DragonBattle / org.bukkit.craftbukkit.v1_19_R1.boss.CraftDragonBattle / net.minecraft.world.level.dimension.end.EnderDragonBattle !

       

      The check in net.minecraft.server.level.WorldServer (line 302) has changed in 1.19 !

      In non default end worlds no DragonBattle is initialized ...

            Assignee:
            Doc
            Reporter:
            Jeppa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: