private void RefreshBtnCompact()
 {
     if (Drop.PlayerCanCraft(Usable.crafts[blockSelected]) && compactor.energy >= Usable.energyToCreat[blockSelected])
     {
         btnCompact.Disabled = false;
     }
     else
     {
         btnCompact.Disabled = true;
     }
 }
 private void RefreshBtnPrint()
 {
     if (Drop.PlayerCanCraft(Building.crafts[buildingSelected]) && !printer3D.isPrinting)
     {
         btnPrint.Disabled = false;
     }
     else
     {
         btnPrint.Disabled = true;
     }
 }
    public void _on_BtnPrint_button_down()
    {
        if (!printer3D.isPrinting && Drop.PlayerCanCraft(Building.crafts[buildingSelected]))
        {
            foreach (var loot in Building.crafts[buildingSelected].loots)
            {
                Player.inventoryItems.Remove(loot.type, loot.amount);
            }
            printer3D.Print(buildingSelected);
        }

        SetDescription(buildingSelected);
    }
    public void _on_BtnCompact_button_down()
    {
        if (Drop.PlayerCanCraft(Usable.crafts[blockSelected]) &&
            compactor.energy >= Usable.energyToCreat[blockSelected])
        {
            foreach (var loot in Usable.crafts[blockSelected].loots)
            {
                Player.inventoryItems.Remove(loot.type, loot.amount);
            }
            compactor.RemoveEnergy(Usable.energyToCreat[blockSelected]);
            Player.inventoryUsables.Add(blockSelected, 1);
        }

        SetDescription(blockSelected);
    }