forked from Upstream/mmocore
Fixed bug for Inventory
This commit is contained in:
parent
29aebdc2a1
commit
b1797f30ea
@ -39,7 +39,7 @@ public class PlayerListener implements Listener {
|
||||
*/
|
||||
@EventHandler
|
||||
public void b(InventoryClickEvent event) {
|
||||
if (event.getInventory().getHolder() instanceof PluginInventory)
|
||||
if (event.getInventory().getHolder() instanceof PluginInventory&&event.getCurrentItem()!=null)
|
||||
((PluginInventory) event.getInventory().getHolder())
|
||||
.whenClicked(new InventoryClickContext(event.getRawSlot(), event.getCurrentItem(), event.getClick(), event, event.getInventory()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user