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

New Doors do not inherit from Openable and Door

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: