AreaEffectCloud getSource does not return the actual source

XMLWordPrintable

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

      Spigot 1.12

      From my observations, with the Ender Dragon fight, at least, getSource always returns null. 

      Looking at the code for AreaEffectCloud, I see that getSource returns the projectileSource from Entity. However, EntityAreaEffectCloud use a different field to hold the source: aB

      If I use reflection get obtain the value of aB, the correct originating entity is returned.

       

            Assignee:
            Unassigned
            Reporter:
            Fred
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: