Merchant instanceof AbstractVillager always returns false despite AbstractVillager being a subinterface of Merchant

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • CraftBukkit version 4236-Spigot-cb8cf80-f993563 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • Yes

      While working with TradeSelectEvent listeners I noticed that TradeSelectEvent#getMerchant() instanceof Villager or AbstractVillager always returns false. Villager and AbstractVillager are both noted as subinterfaces of Merchant.

            Assignee:
            Unassigned
            Reporter:
            Athlaeos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: