SpongePowered / SpongeForge

A Forge mod that implements SpongeAPI
http://www.spongepowered.org/
MIT License
1.14k stars 306 forks source link

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

Open ShunL12324 opened 4 years ago

ShunL12324 commented 4 years ago

I am currently running

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.