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

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

XMLWordPrintable

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

            Unassigned Unassigned
            Athlaeos Athlaeos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: