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

Beacon.getTier() always returns 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-df0eb25-0309d17 (MC: 1.14.2)
    • Yes

      Hello, I have a problem with getting the correct beacon tier (beacon tier = how many layers of blocks are under the beacon).

      Whenever I use the method for getting the tier (that is Beacon.getTier()), it returns 0.

      Other methods (such as setting primary/secondary effects) work fine.

      Since this is an API bug, I enclose a simple plugin to showcase this error. Whenever a player interacts with a beacon, it logs the tier of the given beacon into the console.

       

      Tested on these versions:

      Does not work correctly:

          CraftBukkit 1.14.2, 1.14.1, 1.14

          Spigot 1.14.2, 1.14.1, 1.14

      Works correctly:

          CraftBukkit and Spigot 1.13.2

       

      I have spent about 2 hours on testing this bug on various versions.

        1. BeaconTierTestPlugin.rar
          7 kB
          Lolokar Productions

            Unassigned Unassigned
            Lolokar Productions Lolokar Productions
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: