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

PotionEffectType.createPotionEffect creates wrong durations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None

      While coding, I tried to create a PotionEffect using PotionEffectType.createEffect method.
      I inserted the duration, and the duration didn't work.
      When I inserted 100 (ticks = 5 seconds), It worked for a bit longer than 1 second, and when I inserted 500 it worked for a bit longer than 5 seconds.

      After some testing, I tried creating the effect with the potioneffect constructor and entered 100 ticks, it worked for 100 ticks.

      Basically, durations in createEfefct method don't work correctly.

            Unassigned Unassigned
            NonameSLdev SL Dev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: