BlockPhysicsEvent gets triggered, but cancelling doesn't work

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      Windows 10 64-bit

      Java 8

    • This server is running CraftBukkit version git-Spigot-69774b3-ff9bab1 (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
    • Yes

      The title pretty much sums up the problem.

      When I cancel the event, then the torches, signs etc. still pop off, when I break the block they are attached to.

      Video: https://www.youtube.com/watch?v=cq9isjwYf3o

      Code:

      public class Test extends JavaPlugin implements Listener {
        public void onEnable() {
          Bukkit.getLogger().info("[Test] Test v" + getDescription().getVersion() + " is enabled!");
          Bukkit.getPluginManager().registerEvents(this, this);
        }
      
        public void onDisable() {
          Bukkit.getLogger().info("[Test] Test v" + getDescription().getVersion() + " is disabled!");
        }
      
        @EventHandler(priority = EventPriority.HIGHEST)
        public void onBlockPhysics(BlockPhysicsEvent e) {
          e.setCancelled(true);
        }
      }

            Assignee:
            Unassigned
            Reporter:
            PlayFriik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: