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

Certain blocks Don't call BlockCanBuildEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Purpur, but the issue I'm having is a Bukkit-to-Spigot issue.  During development.
      But if I need to update just to tell you there is an issue in Bukkit I will.

    •  1825
    • Not Applicable
    • Yes

      The Event: BlockCanBuildEvent, Is not fired with Torches (Wall or standing items specifically) 

      Block item has a CanPlace call, and that works just fine.
      However
      Standing And WallBlockItem dont call this at all.
      Because the placement state is Overridden.

      Here are some Screenshots followed by a snippet of code, and a video.
      Snippet:

      @EventHandler(priority = EventPriority.HIGHEST)
      public void on(BlockCanBuildEvent e) {
          System.out.println("BlockCanBuildEvent Called");
      } 

      Just toss it somewhere, works for blocks but not on torches or things of that nature

        1. 1.png
          1.png
          18 kB
        2. 2.png
          2.png
          74 kB
        3. 3.png
          3.png
          64 kB
        4. Video Example.mp4
          2.42 MB

            Unassigned Unassigned
            NextdoorPsycho Brian Fopiano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: