SpongeForge icon indicating copy to clipboard operation
SpongeForge copied to clipboard

Inventory.builder.listener did not fire when using "InventoryArchetypes.ANVIL"

Open ShunL12324 opened this issue 5 years ago • 0 comments

I am currently running

  • SpongeForge version: 1.12.2-2838-7.2.3
  • Forge version: 14.23.5.2847
  • Java version: 1.8.0_264/64-bit
  • Operating System: Windows 10
  • Plugins/Mods: EconomyLite, Nucleus, PlaceholderAPI

Issue Description Inventory.builder.listener did not fire when using "InventoryArchetypes.ANVIL"

Inventory anvil = Inventory.builder()
        .of(InventoryArchetypes.ANVIL)
        .listener(InteractInventoryEvent.class, interact -> {
            // did not fire when click or any interact action
            System.out.println("111");
        })
        .build(Pokedeal.instance);
player.openInventory(anvil);```  

// There is no any error throw out.

ShunL12324 avatar Oct 17 '20 12:10 ShunL12324