using Quartz.Settings; namespace Harmony.XUiC_CollectedItemListPatches { [HarmonyPatch(typeof(XUiC_CollectedItemList))] [HarmonyPatch("Update")] public class UpdatePatch { public static bool Prefix(XUiC_CollectedItemList __instance, float _dt, ref XUiView ___viewComponent ) { if (MinimapSettings.Enabled) { ___viewComponent.Position = new Vector2i(-90, 270); } else { ___viewComponent.Position = new Vector2i(-90, 32); } return true; } } }