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

SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source (SCULK_CATALYST)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • windows, java 17

    • [20:05:27] [Server thread/INFO]: This server is running CraftBukkit version 3507-Spigot-fa893f0-c3f219e (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
    • Yes

      When the BlockSpreadEvent is used on the results of a Sculk_Catalyst spreading sculk, plugins are given the Source and Block from the event. Source ends up being the newly minted Sculk or Sculk_Vein. The event Block ends up being the previous block that is changing into Sculk/SculkVein: air for Sculk_Veins; another block like Grass_Block or Dirt/Stone when it is changed to Sculk.

      Protection plugins would find it very useful to know the true source: the Skulk_Catalyst.

      Without knowing the true source, protection plugins cannot prevent sculk and sculk_veins spreading into areas they should not.

      This might be a case where Sculk_Catalysts throw a BlockFertalizeEvent, if you don't want to alter how the BlockSpreadEvent is used here.

            Unassigned Unassigned
            LlmDl Llm Dl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: