Player#sendBlockChange doesn't work for Openable whenever being used as Openable

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

      Ubuntu 22.04
      Java 17

    • This server is running CraftBukkit version 3685-Spigot-41150f3-4839470 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Yes

      Whenever doing

      public static void sendOpenableChange(Player player, Block block, boolean open) {
      BlockData blockData = block.getBlockData().clone();
      if (!(blockData instanceof Openable openable)) {
      return;
      }
      player.sendMessage("is openable");
      openable.setOpen(open);
      player.sendBlockChange(block.getLocation(), openable);
      } 

      a Barrel is passed and open as true, "is openable" is sent to the player but there are no changes to the barrel.

            Assignee:
            Unassigned
            Reporter:
            Luis Benavides-Naranjo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: