Disabling pickup item

Hey,

As ChangeInventoryEvent.Pickup is not currently implemented, is there a way to cancel pickup event or to set some keys to disable this ? :smile:

Thanks.

@Listener
public void onItemPickup(CollideEntityEvent event, @First Player player) {
    List<Entity> entityItems = event.filterEntities(entity -> !(entity instanceof EntityItem));
    if (entityItems.size() >= 1) {
        event.setCancelled(true);
    }
}

Thanks a lot :smile: