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

Wrong BlockData classes in Material enum for SOUL_FIRE and SOUL_TORCH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • 1.18-pre5
    • Yes

      In the Material enum the SOUL_FIRE is specified as returning the BlockData class Fire. At runtime it returns an instance of CraftBlockData.
      The returned instance is correct and Material not, because SOUL_FIRE (in contrast to FIRE) has no block properties at all.

      The enum element SOUL_TORCH is specified as returning Lightable. At runtime there is an instance of CraftBlockData returned.
      The returned instance is correct, since SOUL_TORCH (like TORCH) is not lightable.

      I've created PR 955 in CB to help find such issues in the future.

            Unassigned Unassigned
            Black-Hole Black Hole
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: