internal static bool IsStackableGearItem(GameObject gameObject) { if (gameObject == null) { return(false); } Bed bed = gameObject.GetComponent <Bed>(); if (bed != null && bed.GetState() == BedRollState.Placed) { return(false); } GearItem gearItem = gameObject.GetComponent <GearItem>(); if (gearItem == null) { return(false); } return(true); }