static void MoveWorldItemsToGeneric() { WorldItem characterWorldItem = Selection.activeGameObject.GetComponent <WorldItem> (); if (characterWorldItem != null) { StackItem characterStackItem = characterWorldItem.GetStackItem(WIMode.None); Mods.Get.Runtime.SaveMod <StackItem> (characterStackItem, "Character", characterStackItem.FileName); } }