playEffect(Effect.POTION_BREAK, potion) wrong color

XMLWordPrintable

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

      With the latest Potion API related changes Potion was deprecated and PotionType#getDamageValue() as well as Potion.toDamageValue() returns 0 for every potion effect.
      In the past I used either a Potion or PotionType#getDamageValue() as data value: location.getWorld().playEffect(location, Effect.POTION_BREAK, potionType.getDamageValue())

      Both no longer work with these changes. It will show a blue particle effect reagrdless of the used Potion or PotionType.

      However, I don't seem to be able to find an alternative which would allow me to spawn the potion break particle effect of a certain color / for a certain potion effect.

            Assignee:
            Unassigned
            Reporter:
            blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: