Fixed GUI not closing, fixed ingot piles fucking up
Fixed potential issue with the way SetType was being used with ingots.