if(MFRUtil.isHolding(player, ItemLogicUpgradeCard.class))
{
TileEntityRedNetLogic logic = (TileEntityRedNetLogic)world.getBlockTileEntity(x, y, z);
if(logic != null)
{
if(logic.insertUpgrade(player.inventory.getCurrentItem().getItemDamage() + 1));
{
if(!player.capabilities.isCreativeMode)
{
player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
}