open it in-game, and then press offhand switch (by default F key) while cursor is on any item.
In creative:
once player closes inventory item in their offhand will be crafted and cause a InventoryCreativeEvent
In survival:
once player closes inventory item in their offhand will stay as a ghost item
Suggested resolution:
In InventoryClickEvent: event.getPlayer().getInventory().setItemInOffHand(event.getPlayer().getInventory().getItemInOffHand());
Im not sure that event.getPlayer().updateInventory() works properly in this case
I really love what this framework provides, so i hope youll keep on developing it.
Issue: Inventory click with offhand causes *possible item duplication, to replicate it: Create any GUI, for example like one in wiki:
open it in-game, and then press offhand switch (by default F key) while cursor is on any item.
Suggested resolution: In InventoryClickEvent: event.getPlayer().getInventory().setItemInOffHand(event.getPlayer().getInventory().getItemInOffHand()); Im not sure that event.getPlayer().updateInventory() works properly in this case