public static bool Prefix(QuickSlots __instance) { if ((__instance._heldItem == null) || !DeathRun.config.firstAidQuickSlot) { return(true); } Pickupable item = __instance._heldItem.item; if (item.GetTechType() != TechType.FirstAidKit) { return(true); } Survival component = Player.main.GetComponent <Survival>(); if (component != null) { if (component.Use(item.gameObject)) { __instance.refillTechType = item.GetTechType(); __instance.refillSlot = __instance.GetSlotByItem(__instance._heldItem); __instance.desiredSlot = __instance.refillSlot; UnityEngine.Object.Destroy(item.gameObject); return(false); } } return(false); }