New Doors do not inherit from Openable and Door

XMLWordPrintable

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

      Spigot 1.8.3

      When dealing with a plugin that inherits with MaterialData (Citadel) I have noticed that when dealing with regular the plugin works fine when a player doesnt have access to a door and tries to open it they cant.

      What we use to check is this method

      public boolean isSecurable()

      Unknown macro: { Block block = getLocation().getBlock(); return block.getState() instanceof InventoryHolder || block.getState().getData() instanceof Openable; }

      What has ended up happening with the new door types is that this method returns false do to them not being an instanceof Openable. Openable is not a deprecated class and they should inherit from them.

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

              Created:
              Updated:
              Resolved: