public override void OnCraft(Item item)
        {
            NPC n = SoulOfNPC.getNPCfromNPCTag(npcType);

            ((VendingMachineItem)(item.modItem)).setNPCType(n);
            npcType = null;
        }
 public override void Load(TagCompound tag)
 {
     if (tag.ContainsKey("npc"))
     {
         setNPCType(SoulOfNPC.getNPCfromNPCTag((string)tag["npc"]));
         hasShop = false;
     }
 }