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

Custom Anvil Inventory Returns CraftInventoryCustom not CraftInventoryAnvil

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Invalid
    • None
    • None
    • All spigot based servers 1.12--R0.1

    Description

      In attempting to manipulate the text field in an anvil menu, I would create an inventory with Bukkit.createInventory(player, InventoryType.Anvil) which then in all return cases returns CraftInventoryCustom which can be cast to neither CraftInventoryAnvil nor AnvilInventory.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Lecrayen Nathan Lathrop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: